IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

57 Zeilen
2.6KB

  1. base: freebsd-11.2
  2. steps:
  3. - run: # install dependencies
  4. - ASSUME_ALWAYS_YES=yes pkg bootstrap
  5. - ASSUME_ALWAYS_YES=yes IGNORE_OSVERSION=yes pkg install gmake go git git-lfs ca_root_nss
  6. - run: # downgrade to Go 1.13
  7. - ASSUME_ALWAYS_YES=yes pkg remove go
  8. - ASSUME_ALWAYS_YES=yes IGNORE_OSVERSION=yes pkg install subversion
  9. - svn checkout --depth immediates https://svn.FreeBSD.org/ports/tags/RELEASE_12_1_0 ports-12.1.0
  10. - cd ports-12.1.0
  11. - svn update --set-depth immediates lang
  12. - svn update --set-depth infinity lang/go
  13. - svn update --set-depth infinity lang/go14
  14. - svn update --set-depth infinity Mk
  15. - svn update --set-depth infinity Templates
  16. - svn update --set-depth infinity Tools
  17. - svn update --set-depth infinity Keywords
  18. - cd lang/go
  19. - ALLOW_UNSUPPORTED_SYSTEM=yes BATCH=yes make install clean
  20. - cd /
  21. - rm -rvf /ports-12.1.0
  22. - run: # install Gitea
  23. - ASSUME_ALWAYS_YES=yes pkg remove go14
  24. - export REVISION=534103
  25. - svn checkout -r $REVISION --depth immediates https://svn.FreeBSD.org/ports/head ports-r${REVISION}
  26. - cd ports-r${REVISION}
  27. - svn update -r ${REVISION} --set-depth immediates www
  28. - svn update -r ${REVISION} --set-depth infinity www/gitea
  29. - svn update -r ${REVISION} --set-depth infinity Mk
  30. - svn update -r ${REVISION} --set-depth infinity Templates
  31. - svn update -r ${REVISION} --set-depth infinity Tools
  32. - svn update -r ${REVISION} --set-depth infinity Keywords
  33. - cd www/gitea
  34. - ALLOW_UNSUPPORTED_SYSTEM=yes BATCH=yes make install clean
  35. - cd /
  36. - rm -rvf /ports-r${REVISION}
  37. - run: # remove unnecessary packages
  38. - ASSUME_ALWAYS_YES=yes pkg remove gmake go
  39. - ASSUME_ALWAYS_YES=yes pkg autoremove
  40. - run: # install crudini
  41. - ASSUME_ALWAYS_YES=yes pkg install py27-crudini
  42. - run: # final touches
  43. - export GITEA_CONF=/usr/local/etc/gitea/conf/app.ini
  44. - crudini --set --inplace $GITEA_CONF oauth2 JWT_SECRET `gitea generate secret JWT_SECRET`
  45. - crudini --set --inplace $GITEA_CONF security INTERNAL_TOKEN `gitea generate secret INTERNAL_TOKEN`
  46. - crudini --set --inplace $GITEA_CONF security SECRET_KEY `gitea generate secret SECRET_KEY`
  47. - crudini --set --inplace $GITEA_CONF service DISABLE_REGISTRATION true
  48. - chown root:git $GITEA_CONF
  49. - chmod 640 $GITEA_CONF
  50. - sysrc sshd_enable=NO
  51. - sysrc gitea_enable=YES
  52. - sysrc sendmail_enable=NONE
  53. - sysrc syslogd_flags="-ss"
  54. - run:
  55. - sysrc clear_tmp_enable=YES