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!
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

56 рядки
2.4KB

  1. base: freebsd-11.2
  2. steps:
  3. - run:
  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. # 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. # install Gitea
  23. - ASSUME_ALWAYS_YES=yes pkg remove go14
  24. - svn checkout --depth immediates https://svn.FreeBSD.org/ports/head ports-head
  25. - cd ports-head
  26. - svn update --set-depth immediates www
  27. - svn update --set-depth infinity www/gitea
  28. - svn update --set-depth infinity Mk
  29. - svn update --set-depth infinity Templates
  30. - svn update --set-depth infinity Tools
  31. - svn update --set-depth infinity Keywords
  32. - cd www/gitea
  33. - ALLOW_UNSUPPORTED_SYSTEM=yes BATCH=yes make install clean
  34. - cd /
  35. - rm -rvf /ports-head
  36. # remove unnecessary packages
  37. - ASSUME_ALWAYS_YES=yes pkg remove gmake go
  38. - ASSUME_ALWAYS_YES=yes pkg autoremove
  39. # install crudini
  40. - ASSUME_ALWAYS_YES=yes pkg install py27-crudini
  41. # final touches
  42. - export GITEA_CONF=/usr/local/etc/gitea/conf/app.ini
  43. - crudini --set --inplace $GITEA_CONF oauth2 JWT_SECRET `gitea generate secret JWT_SECRET`
  44. - crudini --set --inplace $GITEA_CONF security INTERNAL_TOKEN `gitea generate secret INTERNAL_TOKEN`
  45. - crudini --set --inplace $GITEA_CONF security SECRET_KEY `gitea generate secret SECRET_KEY`
  46. - crudini --set --inplace $GITEA_CONF service DISABLE_REGISTRATION true
  47. - chown root:git $GITEA_CONF
  48. - chmod 640 $GITEA_CONF
  49. - sysrc sshd_enable=NO
  50. - sysrc gitea_enable=YES
  51. - sysrc sendmail_enable=NONE
  52. - sysrc syslogd_flags="-ss"
  53. - run:
  54. - sysrc clear_tmp_enable=YES