ctucx.git: alpine-pkgs

My personal alpine-packages [deprecated in favor of nixos]

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
21 
22 
23 
24 
25 
26 
27 
28 
29 
30 
31 
32 
33 
34 
35 
36 
37 
38 
39 
40 
41 
42 
43 
44 
# Contributor: Leah (ctucx) <leah@ctu.cx>
# Maintainer: Leah (ctucx) <leah@ctu.cx>
pkgname=frp
pkgver=0.37.0
pkgrel=7
pkgdesc="Daemon which renders SVG plots from Prometheus data"
url="https://github.com/fatedier/frp"
arch="all"
license="Apache License 2.0"
depends=""
makedepends="go"
install="${pkgname}.pre-install"
subpackages="${pkgname}-openrc"
source="${pkgname}-${pkgver}.tar.gz::https://github.com/fatedier/frp/archive/v${pkgver}.tar.gz
        ${pkgname}s.initd
        ${pkgname}s.confd
	${pkgname}c.initd
	${pkgname}c.confd"

builddir="${srcdir}/${pkgname}-${pkgver}/"

build() {
	cd $builddir
	make
}

check() {
	:
}

package() {
	install -Dm755 "${builddir}/bin/frps" "${pkgdir}/usr/bin/frps"
	install -Dm755 "${builddir}/bin/frpc" "${pkgdir}/usr/bin/frpc"
	install -Dm755 "${srcdir}/frps.initd" "${pkgdir}/etc/init.d/frps"
	install -Dm644 "${srcdir}/frps.confd" "${pkgdir}/etc/conf.d/frps"
	install -Dm755 "${srcdir}/frpc.initd" "${pkgdir}/etc/init.d/frpc"
	install -Dm644 "${srcdir}/frpc.confd" "${pkgdir}/etc/conf.d/frpc"
}

sha512sums="1975e5df9cbd752ce14d7580cb75369c3c81b19d5e90a5d1259844d6d3095e965b3b49fc43adfb7eb4148b35c8b2a221c31105176131419b3ccc56f193ba05bb  frp-0.37.0.tar.gz
9e5e90d2e8ddc6d2eb4dea4d1803750aac403f5bb71d79c7d733307f4e9ad66e8ce88d938d6cbf32954cddd5671b32685b5be4259dace89c5a8befea5a5faabe  frps.initd
ead4abcedc42214c83f2e07a920ac2e09b4a39cf4b5e6ccf2cacb89d542801afe1043b109eced4fb2a3c8df6eec44595cfe89f387543c0c7d3cb50a829447b99  frps.confd
83be9ad71404ab04434bff90cf079aeb301e0fa24e38007e9262dde41dde63a949899b81ea445c5a907b31ca3ee6cc5c7154fbe4b83c8d2aebc1512c83939558  frpc.initd
6ad834856c108cc67c1c6972508b30f4c7ed61e0e4b65517ce4dd8f8c2aecc5cc171f2bd2ed6cd9a7b6c63d4b7c393ab9a380714d82597417c5bcf58445366a9  frpc.confd"