Browse Source

Import some packages

master
Rafal Kupiec 11 months ago
parent
commit
f7f0d1a12d
Signed by: belliash <belliash@codingworkshop.eu.org> GPG Key ID: 4E829243E0CFE6B4
23 changed files with 987 additions and 0 deletions
  1. +4
    -0
      media-tv/tvheadend/Manifest
  2. +14
    -0
      media-tv/tvheadend/files/tvheadend.confd
  3. +19
    -0
      media-tv/tvheadend/files/tvheadend.initd
  4. +14
    -0
      media-tv/tvheadend/files/tvheadend.service
  5. +103
    -0
      media-tv/tvheadend/tvheadend-9999.ebuild
  6. +28
    -0
      www-apps/gitea/Manifest
  7. +4
    -0
      www-apps/gitea/files/app.ini
  8. +2
    -0
      www-apps/gitea/files/gitea.confd
  9. +25
    -0
      www-apps/gitea/files/gitea.initd
  10. +25
    -0
      www-apps/gitea/files/gitea.initd-r1
  11. +8
    -0
      www-apps/gitea/files/gitea.logrotated
  12. +26
    -0
      www-apps/gitea/files/gitea.service
  13. +65
    -0
      www-apps/gitea/gitea-1.4.3.ebuild
  14. +65
    -0
      www-apps/gitea/gitea-1.5.0.ebuild
  15. +65
    -0
      www-apps/gitea/gitea-1.5.0_rc1.ebuild
  16. +65
    -0
      www-apps/gitea/gitea-1.5.0_rc2.ebuild
  17. +65
    -0
      www-apps/gitea/gitea-1.5.1.ebuild
  18. +65
    -0
      www-apps/gitea/gitea-1.5.2.ebuild
  19. +65
    -0
      www-apps/gitea/gitea-1.6.0.ebuild
  20. +65
    -0
      www-apps/gitea/gitea-1.6.1.ebuild
  21. +65
    -0
      www-apps/gitea/gitea-1.6.2.ebuild
  22. +65
    -0
      www-apps/gitea/gitea-1.7.0.ebuild
  23. +65
    -0
      www-apps/gitea/gitea-1.7.1.ebuild

+ 4
- 0
media-tv/tvheadend/Manifest View File

@@ -0,0 +1,4 @@
AUX tvheadend.confd 355 SHA256 1dd2bed597ccb84e59beae0ec130287f31a4cc2c2e974708462f08d8885b2e5e SHA512 64ae0cca1e1b46a3ecb2fb4a4ba69ad1dd6a72ce57944b44be28768d293f9cca2ab29067335023f384433e8c75d976fbc4610ca574c930b9891a2f1c75ff4c0b WHIRLPOOL 156a098daf40f42098e3c6862ef307784a882a7e80e269525d702fd17a458b479911c41a3017621cf55cbd96d281fad0de1e6e59b6bb0f0d729cf94d2384343a
AUX tvheadend.initd 376 SHA256 3803724e39b424e78017857d075159b207d957a642d7cb7a61efd05185205ea1 SHA512 e0cd720289185f9a483901b8d52aec989934423630dfa99d2fec5006bc5c16d6ce013dacd62e2fe2395a77bcd9649dbcc8972cb118c1789ac4427dae3af98c12 WHIRLPOOL d18a0148c166fc28e9ec4a8942e6c36259dd169101b51a1b498c104b4851cac830f2467a799b4e1038aff74f26719057cc1b85fb69d97b0eb7a7e75ccba09852
AUX tvheadend.service 304 SHA256 e4ed1f5a50620773cbffff9a22d6ea06311965a6ce139eb8d9f67df10986aecd SHA512 96c61ef4082ecf77ca17a377de3698ae2a47c29519e02676a28d1d2813d5f43dfc3b29d8b91a126a7b8da5f38a8dc2cf13044dba285e22235e7782053041207f WHIRLPOOL 704fb969e5d954330e12c1d4cafa588738cfac4c65d2a234cb8d9a46180a9e33ead0532d94d94fce4efaac566859ec21e4d6f548c56b42a89b7a4f82733a5b53
EBUILD tvheadend-9999.ebuild 2524 SHA256 899c9778a84032c9c420c15e5601fc5b7199fba7fe47d53ebced42bd925b2982 SHA512 bb290268ab3e29e0579416db337e065555e55f4eed41555f6a14743432231df208bf71c9042d8a7260108fd315358ff9e8a77065dfee324e94bf84ad97d28f60 WHIRLPOOL 12fa1341170b4ad8eb1461fb48c19d375a032549fa0874a8a51cd1387bcdb2720044ebaadd57ab6d919e4dedd3151eb7eea62f184c02462bcabc233fc4b96429

+ 14
- 0
media-tv/tvheadend/files/tvheadend.confd View File

@@ -0,0 +1,14 @@
# /etc/conf.d/tvheadend: config file for /etc/init.d/tvheadend
# See the tvheadend(1) manpage for more info.

# Run Tvheadend as this user.
TVHEADEND_USER="tvheadend"

# Run Tvheadend as this group.
TVHEADEND_GROUP="video"

# Path to Tvheadend config.
TVHEADEND_CONFIG="/etc/tvheadend"

# Other options you want to pass to Tvheadend.
TVHEADEND_OPTIONS=""

+ 19
- 0
media-tv/tvheadend/files/tvheadend.initd View File

@@ -0,0 +1,19 @@
#!/sbin/openrc-run

depend() {
need net
}

start() {
ebegin "Starting Tvheadend"
start-stop-daemon --start --quiet --exec /usr/bin/tvheadend \
-- -f -C -u ${TVHEADEND_USER} -g ${TVHEADEND_GROUP} \
-c ${TVHEADEND_CONFIG} ${TVHEADEND_OPTIONS}
eend $?
}

stop() {
ebegin "Stopping Tvheadend"
start-stop-daemon --stop --quiet --pidfile /var/run/tvheadend.pid
eend $?
}

+ 14
- 0
media-tv/tvheadend/files/tvheadend.service View File

@@ -0,0 +1,14 @@
[Unit]
Description=tvheadend
After=network.target

[Service]
Type=forking
PIDFile=/run/tvheadend.pid
ExecStart=/usr/bin/tvheadend -f -p /run/tvheadend.pid -C -c /etc/tvheadend -u tvheadend -g video
ExecStop=/usr/bin/rm /run/tvheadend.pid
Restart=always
RestartSec=5

[Install]
WantedBy=multi-user.target

+ 103
- 0
media-tv/tvheadend/tvheadend-9999.ebuild View File

@@ -0,0 +1,103 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

inherit eutils git-r3 linux-info systemd toolchain-funcs user

DESCRIPTION="Tvheadend is a TV streaming server and digital video recorder"
HOMEPAGE="https://tvheadend.org/"
EGIT_REPO_URI="git://github.com/tvheadend/tvheadend.git"
#EGIT_COMMIT="cf800cb7ee190833695e739ac7cde5dc174c6d6f"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"

IUSE="avahi +capmt +constcw +cwc dbus +dvb +dvbscan ffmpeg hdhomerun libav +imagecache inotify +iptv +satip +timeshift uriparser xmltv zlib"

RDEPEND="dev-libs/openssl:=
virtual/libiconv
avahi? ( net-dns/avahi )
dbus? ( sys-apps/dbus )
ffmpeg? (
!libav? ( media-video/ffmpeg:0= )
libav? ( media-video/libav:= )
)
hdhomerun? ( media-libs/libhdhomerun )
uriparser? ( dev-libs/uriparser )
zlib? ( sys-libs/zlib )"

DEPEND="${RDEPEND}
dvb? ( virtual/linuxtv-dvb-headers )
capmt? ( virtual/linuxtv-dvb-headers )
virtual/pkgconfig"

RDEPEND+="
dvbscan? ( media-tv/linuxtv-dvb-apps )
xmltv? ( media-tv/xmltv )"

CONFIG_CHECK="~INOTIFY_USER"

DOCS=( README.md )

pkg_setup() {
enewuser tvheadend -1 -1 /dev/null video
}

src_prepare() {
# remove '-Werror' wrt bug #438424
sed -e 's:-Werror::' -i Makefile || die 'sed failed!'
}

src_configure() {
econf --prefix="${EPREFIX}"/usr \
--datadir="${EPREFIX}"/usr/share \
--disable-hdhomerun_static \
--disable-ffmpeg_static \
--disable-ccache \
--disable-dvbscan \
$(use_enable avahi) \
$(use_enable capmt) \
$(use_enable constcw) \
$(use_enable cwc) \
$(use_enable dbus) \
$(use_enable dvb linuxdvb) \
$(use_enable ffmpeg libav) \
$(use_enable hdhomerun hdhomerun_client) \
$(use_enable imagecache) \
$(use_enable inotify) \
$(use_enable iptv) \
$(use_enable satip satip_server) \
$(use_enable satip satip_client) \
$(use_enable timeshift) \
$(use_enable uriparser) \
$(use_enable zlib)
}

src_compile() {
emake CC="$(tc-getCC)"
}

src_install() {
default

newinitd "${FILESDIR}/tvheadend.initd" tvheadend
newconfd "${FILESDIR}/tvheadend.confd" tvheadend

systemd_dounit "${FILESDIR}/tvheadend.service"

dodir /etc/tvheadend
fperms 0700 /etc/tvheadend
fowners tvheadend:video /etc/tvheadend
}

pkg_postinst() {
elog "The Tvheadend web interface can be reached at:"
elog "http://localhost:9981/"
elog
elog "Make sure that you change the default username"
elog "and password via the Configuration / Access control"
elog "tab in the web interface."
}

+ 28
- 0
www-apps/gitea/Manifest View File

@@ -0,0 +1,28 @@
AUX app.ini 67 BLAKE2B 4ec7b8217486047b419202b3a8a7172ac21ae0e5ad9224cd4f010be730ac5cda9d05bf06dcba2d06f8809900094b3b007ef98dd4ea20a125fb7d3db279f53e4a SHA512 93f6f7cf49dd1ece56f7da711adbb58cc38a503527aeea140837d74456ee6f550a089e897d9cb94382e1eb3f5a5cbe4a61362534463eada08a91f314da0f2108
AUX gitea.confd 74 BLAKE2B 656800d35c8f0075005e7e9e5c804292f9884663f89f653426064a20cfbcb518f736bd94947a03bce5adad670fb6150d93026999d6d5395f37a85666b6663a2f SHA512 3e05bad19cd924c4375d9ca6fc57142ba4b5ec897a1c789c3fc9710dfcfee209a199c95040eece089ad93e0357486ab98fad0c448a61e318646b7a71845e9a25
AUX gitea.initd 688 BLAKE2B eb2341dee53f3fd92c49137855615d9ae7ca77efc396e2d2ed8b624ed2776c7522455a469c00172ecbbe2151ccab476baa0c779baf8a39f63348bdc7ebbd29c2 SHA512 4a6bba463c9abafcb6fc9f3854efd1a69fb3b213c2b34ff6a233f90db535c2ab0f375a0809e4c4be6651ed60d7696a54148a5ee9192567d70ca6a5203a8d3266
AUX gitea.initd-r1 688 BLAKE2B eb2341dee53f3fd92c49137855615d9ae7ca77efc396e2d2ed8b624ed2776c7522455a469c00172ecbbe2151ccab476baa0c779baf8a39f63348bdc7ebbd29c2 SHA512 4a6bba463c9abafcb6fc9f3854efd1a69fb3b213c2b34ff6a233f90db535c2ab0f375a0809e4c4be6651ed60d7696a54148a5ee9192567d70ca6a5203a8d3266
AUX gitea.logrotated 87 BLAKE2B 373830ddd6eed0ce2f0f7b1dab14e4a253e5a56a73f477cfadbc6deec373846d4df2d697735391581771699d5a6513acb0e14a446873de01eba10d19e3a6bd88 SHA512 798f3fc33026f19dd31ffa78b9b1ed313d7b82b19c047f509e896c1798b2925a1bb7c4998d98a6b47e728979bf7132fb1c2a80eb7fda096a763d6791631cb6d4
AUX gitea.service 472 BLAKE2B 4c728e2987d0c0a86e65d4b9c1a59f6193ff8a3f9b066991a06f495ad1c5586b3497c71fca1cce5b65f167af09343e7bf3215ee5e8fdefa539e384198d2d88d6 SHA512 6666fe3b4cdbb78a58db4a6bf47a15e6be9ab30b666c6eb77a9e8a002d8c0abd510fc75ef463a11ee6892ab12c98943774616072cb64fd9f2fa42ff8f676aa95
DIST gitea-1.4.3.tar.gz 14985783 BLAKE2B d2f141a036406c92e7900ce073066ff5024f308c24a2705eb5da229c48a1b6c772d3148222aafd5c0d6608830670badb2a102149f58a134cc32b5175e1ae306e SHA512 24498b418b9ddb14da5568a206e1fa0831c5789e0b64207f413c3b86e2a855052f7af80d3cb80549eaae6944e22af271c00f6308c66487c3be0dccf55a17976a
DIST gitea-1.5.0.tar.gz 18847969 BLAKE2B 59da59a3d08c64c066204f4764f14c4b257495aba7800e9d6ebfcab5ad12402ce6cd17f14ec2187f994b46d83cf587422d7b711ceea4a99cc366105bd374daa1 SHA512 06cbcadc138496abf500b8d219d0770c5f6b8af419f9c3733596ee7e20cb50235815433979b2b1daa0a6117e6eb84de9678667236549e018079c49b793f22d68
DIST gitea-1.5.0_rc1.tar.gz 18844756 BLAKE2B 5f525483fc60813a1665443379041324c011d6688ec91b3409ebe77c0d249710f1747887d9f50e9b660e805ebe30c6548e2f663d68a077d7b1278587314966c8 SHA512 43d8c746508ccc967d03c0ca255d0844922ff362c12ca171bc6f79f851f35141fe25ec2287f75a1878402783946722ba2c6a8b14a853b75f0a928c3316ea2832
DIST gitea-1.5.0_rc2.tar.gz 18849637 BLAKE2B 76ec7133f59a8d7751536dd4c0e3a0a441a7fe8f99364139b41e9efca765534227ae1d148f7f95f33969ffc6c8f82c20e6c4e2ecbe56ab2c2f36b6fa6a8c7d02 SHA512 a5930ef78bb8419aebf28014118c0f19c10022ac16435a54c3bc0b31788de4c7f84db503d81382ae70befd1d0aa5979225ac59cc7fb05e95b2989e79912bec39
DIST gitea-1.5.1.tar.gz 18847969 BLAKE2B 59da59a3d08c64c066204f4764f14c4b257495aba7800e9d6ebfcab5ad12402ce6cd17f14ec2187f994b46d83cf587422d7b711ceea4a99cc366105bd374daa1 SHA512 06cbcadc138496abf500b8d219d0770c5f6b8af419f9c3733596ee7e20cb50235815433979b2b1daa0a6117e6eb84de9678667236549e018079c49b793f22d68
DIST gitea-1.5.2.tar.gz 18866286 BLAKE2B a9a31fa6a310dcb6debd9399f234262214021d72adda52af959e6d9d692d5902ff6955a9802bf60212cecb2a0146c4905952d44643aa83e49c645d32541907c2 SHA512 ef91c881b3cb81d79d182b78c95624f24d63e21daa2d6e561fca79edba0ad588fae7c55503f900a8f05c566ed3bff92a9c4385fc7e5c701a80749d2a8c58b599
DIST gitea-1.6.0.tar.gz 19508474 BLAKE2B 5213014fa5a465019708605f3a5bbb5b5fe40fc5cacec422d92364a6fc6eec3a3904567bbb443545fffc9e7247bb13cc2427b11015cfa0420b94b51ec33c54c3 SHA512 67591fd610bc16909c9cbddc9d55b7b60653934c0f77cf6cb0c3b92c8e3b884bc0b9bdd5ccb70a3897859a86caa4ebe807bb3ab988455f5516dcc95745c8d0a4
DIST gitea-1.6.1.tar.gz 19508204 BLAKE2B 460cb41b3f809c307f32374d9081f8897448986f3e40f5f19cb909f07cceb6a29674ba7f97a2857e824f53e7af34833fa253c39b0d510863d0ec0f65ee45bbd7 SHA512 c02f70c1fa7fde0f2ed968ad69f031937fe0fefe27bbce6a6eb4ac975ea9773b34ff3a4cf1083fcc9da7312006911cdb7467f5732d8ed7a14c0eecefceebab57
DIST gitea-1.6.2.tar.gz 19505163 BLAKE2B e1385fc2757928d3ac1f484bba14939bfe5dbb5786ff755887d4a9caaeb88cc4d5b6b3e3f9cc135b995bf0195b566124113c8a92af5aa1ff95fb0eb64968741e SHA512 de2b8f7275175b9aedbf0f5ffb20194431ff629bd31c37508ba0bafb4ec7009d6f8501acc8fee5d00507a89ab4936cb1f60778e7dff1be32c548c29554f92ec7
DIST gitea-1.7.0.tar.gz 20829587 BLAKE2B c7450886981e416ccc5a7976ff8d7ffb76d53e6c8238e5bcabdfa66d3493038b5343cce04b2fd3f822db0e9d1fdb4a14943ac63f893a0e0a2a6ad930359e10bf SHA512 ee9cc316572c8a2330ca3b06c0a288c29d86898874e9a6b6e6608c62064c5dc8324f96433ccfe160c07301e5dbdb170a5e01a31f1317881712b8e26bc407ccac
DIST gitea-1.7.1.tar.gz 20834721 BLAKE2B 576d107bbfc495b41b52dad93565010ea8634e3b8907f5ebbbf7f8f404d0b0ab2264777587b9c3258049a31fdfaea585ed51b81a2834a486381563decfeee808 SHA512 b8e9fba09d34c8929d3ad04417a106a0c3b4b4d0982a7d4c92c764113d29a2e2016a9bee378955dbb9d3839850e481cdad0e94ed1b700c9eda85f63a0ada8e78
EBUILD gitea-1.4.3.ebuild 2061 BLAKE2B 4863aa881ea31ffa3aece085ce522d2592d24b0a9027873acab600e0dcb77eb47506b1d971dd05ccf3f02969f62acd8d0083c09cddeec85c7d2d8700858588e0 SHA512 c374b17bc6da49c7193a9b3d68e56e3d6382752f73fcf2cec51166ada975ad66ca821a0a9931d039fe27f8a1b17330c1281dd641b9d1c3b8d4b11c713d9a0a0e
EBUILD gitea-1.5.0.ebuild 2061 BLAKE2B 6a4c6efdeeddbe208659f2c628e1bdbc826f5c479dea02a1ac990c8fabb01711c719080087882f0e8d43bdecb9f2922c18ec627a52080afd9bf2bbd69b6129da SHA512 2f88e7fd618104b2d3a219c1a458b0a16187d208b4a62d4baf2c4e8bd3271569384b8a122c0835201b23f4dab594d6d3a9d60cdb66edd24103cf6b808382b16e
EBUILD gitea-1.5.0_rc1.ebuild 2065 BLAKE2B e6b5320d7e68da3c54646a4a748e083f323e5f890393214e544e25f98bee8fd51c482ad3b38545205a0974a88fe6b104e17c063fde2c15c97ab0027317df41be SHA512 246b119942f07f9834c4008ddf77a4b5dfad68d05d5a34bc31625d75b35c47e7bcd2ba46ce8bb59aec130575b51595a4dedf867911a5ca0c012c084d9b956f2f
EBUILD gitea-1.5.0_rc2.ebuild 2065 BLAKE2B 2df4e0bfeae4200d04cac31366c6c2de2c45325cacb41f17fcd00795bad51660b45ca7130a88bbc7d38b720c82c0092c4a6914b582dd3c8afea577c6a4f04095 SHA512 922576ebf12bcabcfa6d2e143a8e2d31d0f05127a03a06b4301e2dbbbbf4fa69c3e67ccce5ba3de891f48017d77897e674ffb11946cbb9a39eacf3156cdfe86e
EBUILD gitea-1.5.1.ebuild 2061 BLAKE2B 6a4c6efdeeddbe208659f2c628e1bdbc826f5c479dea02a1ac990c8fabb01711c719080087882f0e8d43bdecb9f2922c18ec627a52080afd9bf2bbd69b6129da SHA512 2f88e7fd618104b2d3a219c1a458b0a16187d208b4a62d4baf2c4e8bd3271569384b8a122c0835201b23f4dab594d6d3a9d60cdb66edd24103cf6b808382b16e
EBUILD gitea-1.5.2.ebuild 2061 BLAKE2B 3bf356884d542edea430790f6af876d182b6740375e656731db0da0b5f7e9f5131e181dca268d35453dcb3a7e3ce558b8e794e19d2be19142f015772680515e3 SHA512 a4f889b8ee455854a2ed6b620a3429890d9be11790f99104f9a30ea4c83e791fd61ce5d72d8d86f9766c2d72262809d521bb9c09bb89aa32af0073f77cf45fd5
EBUILD gitea-1.6.0.ebuild 2061 BLAKE2B c36283e06439397444c70c0b6abad05e74820cb16286c1f38fa8ae63e2293b060c987611cc61e98bdd7e866de1deea933ddfa6ace83a99fe9321adf7b492c694 SHA512 5a2bf33f3a0e8d3f02a7ac7134f6c215d00c5963c453d506a4f567e3eccd13193346148564ca8884c371c686598937b76de591ccf6726d25aa81bc3dafa2331f
EBUILD gitea-1.6.1.ebuild 2061 BLAKE2B 7010a4c38c3369deff95bfa53617b3750365cc2f53e9089a3da72e6fbc108037dec22a6520ecf0a3efdf9f5923d0e4848e2de703055f8fa670e691e09d1fbf65 SHA512 1ee25cf437ddc45bea24c60ff229bb3c6eb3017b0844c97927a55167c9a9c6a36a928265c4bba6b9e5a8def8c4738901b6caaf966db08075353ba8c83ea1e4c0
EBUILD gitea-1.6.2.ebuild 2061 BLAKE2B 9703f843256ea8a298ca7988f17ab70a41ecadac391c7f073f93acc4cafa516d7034d9701ec6d6df5c619ad4faa52a1a5751c0ca3a13d8ca875d9aa5bd840dc1 SHA512 cf039c501635ace423c4e2e6b33d3272d2cd25402a93d59047ad5b6c59ec43ef6c5a74b1cd21c4930b5198e499d2ced8f606e4f80447e07db9eea1afd924e62a
EBUILD gitea-1.7.0.ebuild 2061 BLAKE2B 8e5812ea696ae3cbf7dbc7a6603e0f18bd8279d8aa16315a992b694b21ad8563962e0f2ae5f45ce549262bbe9db7e7791c2282864404075c802a8aca5db1cec9 SHA512 c3de9dfc039f7645a05fc60776b6f130fd9bbb0e425afd616ccb4d207b4d62773cb8af2f648ba44e938646c86e757a5702c078b71d1016974c70ebd804a3392b
EBUILD gitea-1.7.1.ebuild 2061 BLAKE2B fd525090e20f3c9ec9d7d49943f5f7d92d8a56c03ebd0bebf479db008501544924d3e46cc6f55373734ef0257e1d961fcc7482fa29cc66e54a34f9380dc9a46b SHA512 d6511ce52414136b614f3a997e44c2d79b9f0cb13009ebcf2d4d095c8c899da6e00c127fd947bfb6fe8776c0d4eb418e5fff85c50763dcff6617f0d1a4317b59

+ 4
- 0
www-apps/gitea/files/app.ini View File

@@ -0,0 +1,4 @@
[log]
MODE = file
LEVEL = Info
ROOT_PATH = /var/log/gitea

+ 2
- 0
www-apps/gitea/files/gitea.confd View File

@@ -0,0 +1,2 @@
# arguments for gitea
command_args="--config /var/lib/gitea/conf/app.ini"

+ 25
- 0
www-apps/gitea/files/gitea.initd View File

@@ -0,0 +1,25 @@
#!/sbin/openrc-run
# Copyright 2016-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

description="Gitea, a self-hosted Git service"
pidfile=${pidfile:-"/run/${SVCNAME}/${SVCNAME}.pid"}
user=${user:-git}
group=${group:-git}

command="/usr/bin/gitea web"
command_args="${command_args:--config /var/lib/gitea/conf/app.ini}"
command_background="true"
start_stop_daemon_args="--user ${user} --group ${group} \
-e GITEA_WORK_DIR=/var/lib/gitea
--stdout /var/log/${SVCNAME}/${SVCNAME}.log \
--stderr /var/log/${SVCNAME}/${SVCNAME}.log"

depend() {
need net
after net
}

start_pre() {
checkpath -d -m 0755 -o "${user}":"${group}" "${pidfile%/*}"
}

+ 25
- 0
www-apps/gitea/files/gitea.initd-r1 View File

@@ -0,0 +1,25 @@
#!/sbin/openrc-run
# Copyright 2016-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

description="Gitea, a self-hosted Git service"
pidfile=${pidfile:-"/run/${SVCNAME}/${SVCNAME}.pid"}
user=${user:-git}
group=${group:-git}

command="/usr/bin/gitea web"
command_args="${command_args:--config /var/lib/gitea/conf/app.ini}"
command_background="true"
start_stop_daemon_args="--user ${user} --group ${group} \
-e GITEA_WORK_DIR=/var/lib/gitea
--stdout /var/log/${SVCNAME}/${SVCNAME}.log \
--stderr /var/log/${SVCNAME}/${SVCNAME}.log"

depend() {
need net
after net
}

start_pre() {
checkpath -d -m 0755 -o "${user}":"${group}" "${pidfile%/*}"
}

+ 8
- 0
www-apps/gitea/files/gitea.logrotated View File

@@ -0,0 +1,8 @@
/var/log/gitea/* {
su git git
missingok
size 5M
rotate 3
compress
copytruncate
}

+ 26
- 0
www-apps/gitea/files/gitea.service View File

@@ -0,0 +1,26 @@
[Unit]
Description=Gitea service
Documentation=https://gitea.io

AssertPathIsDirectory=/var/lib/gitea
AssertPathIsReadWrite=/var/lib/gitea

After=network.target
Requires=network.target
After=mysqld.service
Requires=mysqld.service

[Service]
User=git
Group=git

Environment="GITEA_CUSTOM=/var/lib/gitea"
WorkingDirectory=/var/lib/gitea
ExecStart=/usr/bin/gitea web -c /var/lib/gitea/conf/app.ini

Restart=always
PrivateTmp=true
Nice=5

[Install]
WantedBy=multi-user.target

+ 65
- 0
www-apps/gitea/gitea-1.4.3.ebuild View File

@@ -0,0 +1,65 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6
inherit user systemd golang-build golang-vcs-snapshot

EGO_PN="code.gitea.io/gitea"
KEYWORDS="~amd64 ~arm"

DESCRIPTION="A painless self-hosted Git service, written in Go"
HOMEPAGE="https://github.com/go-gitea/gitea"
SRC_URI="https://github.com/go-gitea/gitea/archive/v1.4.3.tar.gz -> ${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
IUSE=""

DEPEND="dev-go/go-bindata"
RDEPEND="dev-vcs/git"

pkg_setup() {
enewgroup git
enewuser git -1 /bin/bash /var/lib/gitea git
}

src_prepare() {
default
sed -i -e "s/\"main.Version.*$/\"main.Version=${PV}\"/"\
-e "s/-ldflags '-s/-ldflags '/" src/${EGO_PN}/Makefile || die
}

src_compile() {
GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" emake -C src/${EGO_PN} generate
TAGS="bindata pam sqlite" LDFLAGS="" CGO_LDFLAGS="-fno-PIC" GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" emake -C src/${EGO_PN} build
}

src_install() {
mkdir -p ${D}/var/lib/gitea/custom
pushd src/${EGO_PN} || die
cp -apr options ${D}/var/lib/gitea/custom/
cp -apr public ${D}/var/lib/gitea/custom/
cp -apr templates ${D}/var/lib/gitea/custom/
dobin gitea
insinto /var/lib/gitea/conf
newins custom/conf/app.ini.sample app.ini.example
popd || die
newinitd "${FILESDIR}"/gitea.initd-r1 gitea
newconfd "${FILESDIR}"/gitea.confd gitea
keepdir /var/log/gitea /var/lib/gitea/data
fowners -R git:git /var/log/gitea /var/lib/gitea/
systemd_dounit "${FILESDIR}/gitea.service"
}

pkg_postinst() {
if [[ ! -e "${EROOT}/var/lib/gitea/conf/app.ini" ]]; then
elog "No app.ini found, copying initial config over"
cp "${FILESDIR}"/app.ini "${EROOT}"/var/lib/gitea/conf/ || die
chown git:git /var/lib/gitea/conf/app.ini
else
elog "app.ini found, please check example file for possible changes"
ewarn "Please note that environment variables have been changed:"
ewarn "GITEA_WORK_DIR is set to /var/lib/gitea (previous value: unset)"
ewarn "GITEA_CUSTOM is set to '\$GITEA_WORK_DIR/custom' (previous: /var/lib/gitea)"
fi
}

+ 65
- 0
www-apps/gitea/gitea-1.5.0.ebuild View File

@@ -0,0 +1,65 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6
inherit user systemd golang-build golang-vcs-snapshot

EGO_PN="code.gitea.io/gitea"
KEYWORDS="~amd64 ~arm"

DESCRIPTION="A painless self-hosted Git service, written in Go"
HOMEPAGE="https://github.com/go-gitea/gitea"
SRC_URI="https://github.com/go-gitea/gitea/archive/v1.5.0.tar.gz -> ${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
IUSE=""

DEPEND="dev-go/go-bindata"
RDEPEND="dev-vcs/git"

pkg_setup() {
enewgroup git
enewuser git -1 /bin/bash /var/lib/gitea git
}

src_prepare() {
default
sed -i -e "s/\"main.Version.*$/\"main.Version=${PV}\"/"\
-e "s/-ldflags '-s/-ldflags '/" src/${EGO_PN}/Makefile || die
}

src_compile() {
GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" emake -C src/${EGO_PN} generate
TAGS="bindata pam sqlite" LDFLAGS="" CGO_LDFLAGS="-fno-PIC" GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" emake -C src/${EGO_PN} build
}

src_install() {
mkdir -p ${D}/var/lib/gitea/custom
pushd src/${EGO_PN} || die
cp -apr options ${D}/var/lib/gitea/custom/
cp -apr public ${D}/var/lib/gitea/custom/
cp -apr templates ${D}/var/lib/gitea/custom/
dobin gitea
insinto /var/lib/gitea/conf
newins custom/conf/app.ini.sample app.ini.example
popd || die
newinitd "${FILESDIR}"/gitea.initd-r1 gitea
newconfd "${FILESDIR}"/gitea.confd gitea
keepdir /var/log/gitea /var/lib/gitea/data
fowners -R git:git /var/log/gitea /var/lib/gitea/
systemd_dounit "${FILESDIR}/gitea.service"
}

pkg_postinst() {
if [[ ! -e "${EROOT}/var/lib/gitea/conf/app.ini" ]]; then
elog "No app.ini found, copying initial config over"
cp "${FILESDIR}"/app.ini "${EROOT}"/var/lib/gitea/conf/ || die
chown git:git /var/lib/gitea/conf/app.ini
else
elog "app.ini found, please check example file for possible changes"
ewarn "Please note that environment variables have been changed:"
ewarn "GITEA_WORK_DIR is set to /var/lib/gitea (previous value: unset)"
ewarn "GITEA_CUSTOM is set to '\$GITEA_WORK_DIR/custom' (previous: /var/lib/gitea)"
fi
}

+ 65
- 0
www-apps/gitea/gitea-1.5.0_rc1.ebuild View File

@@ -0,0 +1,65 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6
inherit user systemd golang-build golang-vcs-snapshot

EGO_PN="code.gitea.io/gitea"
KEYWORDS="~amd64 ~arm"

DESCRIPTION="A painless self-hosted Git service, written in Go"
HOMEPAGE="https://github.com/go-gitea/gitea"
SRC_URI="https://github.com/go-gitea/gitea/archive/v1.5.0-rc1.tar.gz -> ${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
IUSE=""

DEPEND="dev-go/go-bindata"
RDEPEND="dev-vcs/git"

pkg_setup() {
enewgroup git
enewuser git -1 /bin/bash /var/lib/gitea git
}

src_prepare() {
default
sed -i -e "s/\"main.Version.*$/\"main.Version=${PV}\"/"\
-e "s/-ldflags '-s/-ldflags '/" src/${EGO_PN}/Makefile || die
}

src_compile() {
GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" emake -C src/${EGO_PN} generate
TAGS="bindata pam sqlite" LDFLAGS="" CGO_LDFLAGS="-fno-PIC" GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" emake -C src/${EGO_PN} build
}

src_install() {
mkdir -p ${D}/var/lib/gitea/custom
pushd src/${EGO_PN} || die
cp -apr options ${D}/var/lib/gitea/custom/
cp -apr public ${D}/var/lib/gitea/custom/
cp -apr templates ${D}/var/lib/gitea/custom/
dobin gitea
insinto /var/lib/gitea/conf
newins custom/conf/app.ini.sample app.ini.example
popd || die
newinitd "${FILESDIR}"/gitea.initd-r1 gitea
newconfd "${FILESDIR}"/gitea.confd gitea
keepdir /var/log/gitea /var/lib/gitea/data
fowners -R git:git /var/log/gitea /var/lib/gitea/
systemd_dounit "${FILESDIR}/gitea.service"
}

pkg_postinst() {
if [[ ! -e "${EROOT}/var/lib/gitea/conf/app.ini" ]]; then
elog "No app.ini found, copying initial config over"
cp "${FILESDIR}"/app.ini "${EROOT}"/var/lib/gitea/conf/ || die
chown git:git /var/lib/gitea/conf/app.ini
else
elog "app.ini found, please check example file for possible changes"
ewarn "Please note that environment variables have been changed:"
ewarn "GITEA_WORK_DIR is set to /var/lib/gitea (previous value: unset)"
ewarn "GITEA_CUSTOM is set to '\$GITEA_WORK_DIR/custom' (previous: /var/lib/gitea)"
fi
}

+ 65
- 0
www-apps/gitea/gitea-1.5.0_rc2.ebuild View File

@@ -0,0 +1,65 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6
inherit user systemd golang-build golang-vcs-snapshot

EGO_PN="code.gitea.io/gitea"
KEYWORDS="~amd64 ~arm"

DESCRIPTION="A painless self-hosted Git service, written in Go"
HOMEPAGE="https://github.com/go-gitea/gitea"
SRC_URI="https://github.com/go-gitea/gitea/archive/v1.5.0-rc2.tar.gz -> ${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
IUSE=""

DEPEND="dev-go/go-bindata"
RDEPEND="dev-vcs/git"

pkg_setup() {
enewgroup git
enewuser git -1 /bin/bash /var/lib/gitea git
}

src_prepare() {
default
sed -i -e "s/\"main.Version.*$/\"main.Version=${PV}\"/"\
-e "s/-ldflags '-s/-ldflags '/" src/${EGO_PN}/Makefile || die
}

src_compile() {
GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" emake -C src/${EGO_PN} generate
TAGS="bindata pam sqlite" LDFLAGS="" CGO_LDFLAGS="-fno-PIC" GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" emake -C src/${EGO_PN} build
}

src_install() {
mkdir -p ${D}/var/lib/gitea/custom
pushd src/${EGO_PN} || die
cp -apr options ${D}/var/lib/gitea/custom/
cp -apr public ${D}/var/lib/gitea/custom/
cp -apr templates ${D}/var/lib/gitea/custom/
dobin gitea
insinto /var/lib/gitea/conf
newins custom/conf/app.ini.sample app.ini.example
popd || die
newinitd "${FILESDIR}"/gitea.initd-r1 gitea
newconfd "${FILESDIR}"/gitea.confd gitea
keepdir /var/log/gitea /var/lib/gitea/data
fowners -R git:git /var/log/gitea /var/lib/gitea/
systemd_dounit "${FILESDIR}/gitea.service"
}

pkg_postinst() {
if [[ ! -e "${EROOT}/var/lib/gitea/conf/app.ini" ]]; then
elog "No app.ini found, copying initial config over"
cp "${FILESDIR}"/app.ini "${EROOT}"/var/lib/gitea/conf/ || die
chown git:git /var/lib/gitea/conf/app.ini
else
elog "app.ini found, please check example file for possible changes"
ewarn "Please note that environment variables have been changed:"
ewarn "GITEA_WORK_DIR is set to /var/lib/gitea (previous value: unset)"
ewarn "GITEA_CUSTOM is set to '\$GITEA_WORK_DIR/custom' (previous: /var/lib/gitea)"
fi
}

+ 65
- 0
www-apps/gitea/gitea-1.5.1.ebuild View File

@@ -0,0 +1,65 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6
inherit user systemd golang-build golang-vcs-snapshot

EGO_PN="code.gitea.io/gitea"
KEYWORDS="~amd64 ~arm"

DESCRIPTION="A painless self-hosted Git service, written in Go"
HOMEPAGE="https://github.com/go-gitea/gitea"
SRC_URI="https://github.com/go-gitea/gitea/archive/v1.5.0.tar.gz -> ${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
IUSE=""

DEPEND="dev-go/go-bindata"
RDEPEND="dev-vcs/git"

pkg_setup() {
enewgroup git
enewuser git -1 /bin/bash /var/lib/gitea git
}

src_prepare() {
default
sed -i -e "s/\"main.Version.*$/\"main.Version=${PV}\"/"\
-e "s/-ldflags '-s/-ldflags '/" src/${EGO_PN}/Makefile || die
}

src_compile() {
GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" emake -C src/${EGO_PN} generate
TAGS="bindata pam sqlite" LDFLAGS="" CGO_LDFLAGS="-fno-PIC" GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" emake -C src/${EGO_PN} build
}

src_install() {
mkdir -p ${D}/var/lib/gitea/custom
pushd src/${EGO_PN} || die
cp -apr options ${D}/var/lib/gitea/custom/
cp -apr public ${D}/var/lib/gitea/custom/
cp -apr templates ${D}/var/lib/gitea/custom/
dobin gitea
insinto /var/lib/gitea/conf
newins custom/conf/app.ini.sample app.ini.example
popd || die
newinitd "${FILESDIR}"/gitea.initd-r1 gitea
newconfd "${FILESDIR}"/gitea.confd gitea
keepdir /var/log/gitea /var/lib/gitea/data
fowners -R git:git /var/log/gitea /var/lib/gitea/
systemd_dounit "${FILESDIR}/gitea.service"
}

pkg_postinst() {
if [[ ! -e "${EROOT}/var/lib/gitea/conf/app.ini" ]]; then
elog "No app.ini found, copying initial config over"
cp "${FILESDIR}"/app.ini "${EROOT}"/var/lib/gitea/conf/ || die
chown git:git /var/lib/gitea/conf/app.ini
else
elog "app.ini found, please check example file for possible changes"
ewarn "Please note that environment variables have been changed:"
ewarn "GITEA_WORK_DIR is set to /var/lib/gitea (previous value: unset)"
ewarn "GITEA_CUSTOM is set to '\$GITEA_WORK_DIR/custom' (previous: /var/lib/gitea)"
fi
}

+ 65
- 0
www-apps/gitea/gitea-1.5.2.ebuild View File

@@ -0,0 +1,65 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6
inherit user systemd golang-build golang-vcs-snapshot

EGO_PN="code.gitea.io/gitea"
KEYWORDS="~amd64 ~arm"

DESCRIPTION="A painless self-hosted Git service, written in Go"
HOMEPAGE="https://github.com/go-gitea/gitea"
SRC_URI="https://github.com/go-gitea/gitea/archive/v1.5.2.tar.gz -> ${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
IUSE=""

DEPEND="dev-go/go-bindata"
RDEPEND="dev-vcs/git"

pkg_setup() {
enewgroup git
enewuser git -1 /bin/bash /var/lib/gitea git
}

src_prepare() {
default
sed -i -e "s/\"main.Version.*$/\"main.Version=${PV}\"/"\
-e "s/-ldflags '-s/-ldflags '/" src/${EGO_PN}/Makefile || die
}

src_compile() {
GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" emake -C src/${EGO_PN} generate
TAGS="bindata pam sqlite" LDFLAGS="" CGO_LDFLAGS="-fno-PIC" GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" emake -C src/${EGO_PN} build
}

src_install() {
mkdir -p ${D}/var/lib/gitea/custom
pushd src/${EGO_PN} || die
cp -apr options ${D}/var/lib/gitea/custom/
cp -apr public ${D}/var/lib/gitea/custom/
cp -apr templates ${D}/var/lib/gitea/custom/
dobin gitea
insinto /var/lib/gitea/conf
newins custom/conf/app.ini.sample app.ini.example
popd || die
newinitd "${FILESDIR}"/gitea.initd-r1 gitea
newconfd "${FILESDIR}"/gitea.confd gitea
keepdir /var/log/gitea /var/lib/gitea/data
fowners -R git:git /var/log/gitea /var/lib/gitea/
systemd_dounit "${FILESDIR}/gitea.service"
}

pkg_postinst() {
if [[ ! -e "${EROOT}/var/lib/gitea/conf/app.ini" ]]; then
elog "No app.ini found, copying initial config over"
cp "${FILESDIR}"/app.ini "${EROOT}"/var/lib/gitea/conf/ || die
chown git:git /var/lib/gitea/conf/app.ini
else
elog "app.ini found, please check example file for possible changes"
ewarn "Please note that environment variables have been changed:"
ewarn "GITEA_WORK_DIR is set to /var/lib/gitea (previous value: unset)"
ewarn "GITEA_CUSTOM is set to '\$GITEA_WORK_DIR/custom' (previous: /var/lib/gitea)"
fi
}

+ 65
- 0
www-apps/gitea/gitea-1.6.0.ebuild View File

@@ -0,0 +1,65 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6
inherit user systemd golang-build golang-vcs-snapshot

EGO_PN="code.gitea.io/gitea"
KEYWORDS="~amd64 ~arm"

DESCRIPTION="A painless self-hosted Git service, written in Go"
HOMEPAGE="https://github.com/go-gitea/gitea"
SRC_URI="https://github.com/go-gitea/gitea/archive/v1.6.0.tar.gz -> ${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
IUSE=""

DEPEND="dev-go/go-bindata"
RDEPEND="dev-vcs/git"

pkg_setup() {
enewgroup git
enewuser git -1 /bin/bash /var/lib/gitea git
}

src_prepare() {
default
sed -i -e "s/\"main.Version.*$/\"main.Version=${PV}\"/"\
-e "s/-ldflags '-s/-ldflags '/" src/${EGO_PN}/Makefile || die
}

src_compile() {
GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" emake -C src/${EGO_PN} generate
TAGS="bindata pam sqlite" LDFLAGS="" CGO_LDFLAGS="-fno-PIC" GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" emake -C src/${EGO_PN} build
}

src_install() {
mkdir -p ${D}/var/lib/gitea/custom
pushd src/${EGO_PN} || die
cp -apr options ${D}/var/lib/gitea/custom/
cp -apr public ${D}/var/lib/gitea/custom/
cp -apr templates ${D}/var/lib/gitea/custom/
dobin gitea
insinto /var/lib/gitea/conf
newins custom/conf/app.ini.sample app.ini.example
popd || die
newinitd "${FILESDIR}"/gitea.initd-r1 gitea
newconfd "${FILESDIR}"/gitea.confd gitea
keepdir /var/log/gitea /var/lib/gitea/data
fowners -R git:git /var/log/gitea /var/lib/gitea/
systemd_dounit "${FILESDIR}/gitea.service"
}

pkg_postinst() {
if [[ ! -e "${EROOT}/var/lib/gitea/conf/app.ini" ]]; then
elog "No app.ini found, copying initial config over"
cp "${FILESDIR}"/app.ini "${EROOT}"/var/lib/gitea/conf/ || die
chown git:git /var/lib/gitea/conf/app.ini
else
elog "app.ini found, please check example file for possible changes"
ewarn "Please note that environment variables have been changed:"
ewarn "GITEA_WORK_DIR is set to /var/lib/gitea (previous value: unset)"
ewarn "GITEA_CUSTOM is set to '\$GITEA_WORK_DIR/custom' (previous: /var/lib/gitea)"
fi
}

+ 65
- 0
www-apps/gitea/gitea-1.6.1.ebuild View File

@@ -0,0 +1,65 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6
inherit user systemd golang-build golang-vcs-snapshot

EGO_PN="code.gitea.io/gitea"
KEYWORDS="~amd64 ~arm"

DESCRIPTION="A painless self-hosted Git service, written in Go"
HOMEPAGE="https://github.com/go-gitea/gitea"
SRC_URI="https://github.com/go-gitea/gitea/archive/v1.6.1.tar.gz -> ${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
IUSE=""

DEPEND="dev-go/go-bindata"
RDEPEND="dev-vcs/git"

pkg_setup() {
enewgroup git
enewuser git -1 /bin/bash /var/lib/gitea git
}

src_prepare() {
default
sed -i -e "s/\"main.Version.*$/\"main.Version=${PV}\"/"\
-e "s/-ldflags '-s/-ldflags '/" src/${EGO_PN}/Makefile || die
}

src_compile() {
GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" emake -C src/${EGO_PN} generate
TAGS="bindata pam sqlite" LDFLAGS="" CGO_LDFLAGS="-fno-PIC" GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" emake -C src/${EGO_PN} build
}

src_install() {
mkdir -p ${D}/var/lib/gitea/custom
pushd src/${EGO_PN} || die
cp -apr options ${D}/var/lib/gitea/custom/
cp -apr public ${D}/var/lib/gitea/custom/
cp -apr templates ${D}/var/lib/gitea/custom/
dobin gitea
insinto /var/lib/gitea/conf
newins custom/conf/app.ini.sample app.ini.example
popd || die
newinitd "${FILESDIR}"/gitea.initd-r1 gitea
newconfd "${FILESDIR}"/gitea.confd gitea
keepdir /var/log/gitea /var/lib/gitea/data
fowners -R git:git /var/log/gitea /var/lib/gitea/
systemd_dounit "${FILESDIR}/gitea.service"
}

pkg_postinst() {
if [[ ! -e "${EROOT}/var/lib/gitea/conf/app.ini" ]]; then
elog "No app.ini found, copying initial config over"
cp "${FILESDIR}"/app.ini "${EROOT}"/var/lib/gitea/conf/ || die
chown git:git /var/lib/gitea/conf/app.ini
else
elog "app.ini found, please check example file for possible changes"
ewarn "Please note that environment variables have been changed:"
ewarn "GITEA_WORK_DIR is set to /var/lib/gitea (previous value: unset)"
ewarn "GITEA_CUSTOM is set to '\$GITEA_WORK_DIR/custom' (previous: /var/lib/gitea)"
fi
}

+ 65
- 0
www-apps/gitea/gitea-1.6.2.ebuild View File

@@ -0,0 +1,65 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6
inherit user systemd golang-build golang-vcs-snapshot

EGO_PN="code.gitea.io/gitea"
KEYWORDS="~amd64 ~arm"

DESCRIPTION="A painless self-hosted Git service, written in Go"
HOMEPAGE="https://github.com/go-gitea/gitea"
SRC_URI="https://github.com/go-gitea/gitea/archive/v1.6.2.tar.gz -> ${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
IUSE=""

DEPEND="dev-go/go-bindata"
RDEPEND="dev-vcs/git"

pkg_setup() {
enewgroup git
enewuser git -1 /bin/bash /var/lib/gitea git
}

src_prepare() {
default
sed -i -e "s/\"main.Version.*$/\"main.Version=${PV}\"/"\
-e "s/-ldflags '-s/-ldflags '/" src/${EGO_PN}/Makefile || die
}

src_compile() {
GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" emake -C src/${EGO_PN} generate
TAGS="bindata pam sqlite" LDFLAGS="" CGO_LDFLAGS="-fno-PIC" GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" emake -C src/${EGO_PN} build
}

src_install() {
mkdir -p ${D}/var/lib/gitea/custom
pushd src/${EGO_PN} || die
cp -apr options ${D}/var/lib/gitea/custom/
cp -apr public ${D}/var/lib/gitea/custom/
cp -apr templates ${D}/var/lib/gitea/custom/
dobin gitea
insinto /var/lib/gitea/conf
newins custom/conf/app.ini.sample app.ini.example
popd || die
newinitd "${FILESDIR}"/gitea.initd-r1 gitea
newconfd "${FILESDIR}"/gitea.confd gitea
keepdir /var/log/gitea /var/lib/gitea/data
fowners -R git:git /var/log/gitea /var/lib/gitea/
systemd_dounit "${FILESDIR}/gitea.service"
}

pkg_postinst() {
if [[ ! -e "${EROOT}/var/lib/gitea/conf/app.ini" ]]; then
elog "No app.ini found, copying initial config over"
cp "${FILESDIR}"/app.ini "${EROOT}"/var/lib/gitea/conf/ || die
chown git:git /var/lib/gitea/conf/app.ini
else
elog "app.ini found, please check example file for possible changes"
ewarn "Please note that environment variables have been changed:"
ewarn "GITEA_WORK_DIR is set to /var/lib/gitea (previous value: unset)"
ewarn "GITEA_CUSTOM is set to '\$GITEA_WORK_DIR/custom' (previous: /var/lib/gitea)"
fi
}

+ 65
- 0
www-apps/gitea/gitea-1.7.0.ebuild View File

@@ -0,0 +1,65 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6
inherit user systemd golang-build golang-vcs-snapshot

EGO_PN="code.gitea.io/gitea"
KEYWORDS="~amd64 ~arm"

DESCRIPTION="A painless self-hosted Git service, written in Go"
HOMEPAGE="https://github.com/go-gitea/gitea"
SRC_URI="https://github.com/go-gitea/gitea/archive/v1.7.0.tar.gz -> ${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
IUSE=""

DEPEND="dev-go/go-bindata"
RDEPEND="dev-vcs/git"

pkg_setup() {
enewgroup git
enewuser git -1 /bin/bash /var/lib/gitea git
}

src_prepare() {
default
sed -i -e "s/\"main.Version.*$/\"main.Version=${PV}\"/"\
-e "s/-ldflags '-s/-ldflags '/" src/${EGO_PN}/Makefile || die
}

src_compile() {
GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" emake -C src/${EGO_PN} generate
TAGS="bindata pam sqlite" LDFLAGS="" CGO_LDFLAGS="-fno-PIC" GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" emake -C src/${EGO_PN} build
}

src_install() {
mkdir -p ${D}/var/lib/gitea/custom
pushd src/${EGO_PN} || die
cp -apr options ${D}/var/lib/gitea/custom/
cp -apr public ${D}/var/lib/gitea/custom/
cp -apr templates ${D}/var/lib/gitea/custom/
dobin gitea
insinto /var/lib/gitea/conf
newins custom/conf/app.ini.sample app.ini.example
popd || die
newinitd "${FILESDIR}"/gitea.initd-r1 gitea
newconfd "${FILESDIR}"/gitea.confd gitea
keepdir /var/log/gitea /var/lib/gitea/data
fowners -R git:git /var/log/gitea /var/lib/gitea/
systemd_dounit "${FILESDIR}/gitea.service"
}

pkg_postinst() {
if [[ ! -e "${EROOT}/var/lib/gitea/conf/app.ini" ]]; then
elog "No app.ini found, copying initial config over"
cp "${FILESDIR}"/app.ini "${EROOT}"/var/lib/gitea/conf/ || die
chown git:git /var/lib/gitea/conf/app.ini
else
elog "app.ini found, please check example file for possible changes"
ewarn "Please note that environment variables have been changed:"
ewarn "GITEA_WORK_DIR is set to /var/lib/gitea (previous value: unset)"
ewarn "GITEA_CUSTOM is set to '\$GITEA_WORK_DIR/custom' (previous: /var/lib/gitea)"
fi
}

+ 65
- 0
www-apps/gitea/gitea-1.7.1.ebuild View File

@@ -0,0 +1,65 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6
inherit user systemd golang-build golang-vcs-snapshot

EGO_PN="code.gitea.io/gitea"
KEYWORDS="~amd64 ~arm"

DESCRIPTION="A painless self-hosted Git service, written in Go"
HOMEPAGE="https://github.com/go-gitea/gitea"
SRC_URI="https://github.com/go-gitea/gitea/archive/v1.7.1.tar.gz -> ${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
IUSE=""

DEPEND="dev-go/go-bindata"
RDEPEND="dev-vcs/git"

pkg_setup() {
enewgroup git
enewuser git -1 /bin/bash /var/lib/gitea git
}

src_prepare() {
default
sed -i -e "s/\"main.Version.*$/\"main.Version=${PV}\"/"\
-e "s/-ldflags '-s/-ldflags '/" src/${EGO_PN}/Makefile || die
}

src_compile() {
GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" emake -C src/${EGO_PN} generate
TAGS="bindata pam sqlite" LDFLAGS="" CGO_LDFLAGS="-fno-PIC" GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" emake -C src/${EGO_PN} build
}

src_install() {
mkdir -p ${D}/var/lib/gitea/custom
pushd src/${EGO_PN} || die
cp -apr options ${D}/var/lib/gitea/custom/
cp -apr public ${D}/var/lib/gitea/custom/
cp -apr templates ${D}/var/lib/gitea/custom/
dobin gitea
insinto /var/lib/gitea/conf
newins custom/conf/app.ini.sample app.ini.example
popd || die
newinitd "${FILESDIR}"/gitea.initd-r1 gitea
newconfd "${FILESDIR}"/gitea.confd gitea
keepdir /var/log/gitea /var/lib/gitea/data
fowners -R git:git /var/log/gitea /var/lib/gitea/
systemd_dounit "${FILESDIR}/gitea.service"
}

pkg_postinst() {
if [[ ! -e "${EROOT}/var/lib/gitea/conf/app.ini" ]]; then
elog "No app.ini found, copying initial config over"
cp "${FILESDIR}"/app.ini "${EROOT}"/var/lib/gitea/conf/ || die
chown git:git /var/lib/gitea/conf/app.ini
else
elog "app.ini found, please check example file for possible changes"
ewarn "Please note that environment variables have been changed:"
ewarn "GITEA_WORK_DIR is set to /var/lib/gitea (previous value: unset)"
ewarn "GITEA_CUSTOM is set to '\$GITEA_WORK_DIR/custom' (previous: /var/lib/gitea)"
fi
}

Loading…
Cancel
Save