aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-10-17 10:22:13 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-10-17 10:22:13 +0000
commit66912503366af8a894ed8c0bee69c55396bf2df3 (patch)
tree68b60f3077092ade398e6d7ad3a917a72ee491b5
parentc23954257ce73b6e60c62e725bed7a2048dcab04 (diff)
downloadaports-66912503366af8a894ed8c0bee69c55396bf2df3.tar.bz2
aports-66912503366af8a894ed8c0bee69c55396bf2df3.tar.xz
main/sntpc: fix checksum, and add package()
-rw-r--r--main/sntpc/APKBUILD17
1 files changed, 14 insertions, 3 deletions
diff --git a/main/sntpc/APKBUILD b/main/sntpc/APKBUILD
index 1c75851cca..6d3c207163 100644
--- a/main/sntpc/APKBUILD
+++ b/main/sntpc/APKBUILD
@@ -13,15 +13,26 @@ source="http://git.alpinelinux.org/cgit/sntpc.git/snapshot/sntpc-$pkgver.tar.bz2
sntpc.confd
"
-build() {
- cd "$srcdir/$pkgname-$pkgver"
+_builddir="$srcdir/$pkgname-$pkgver"
+build() {
+ cd "$_builddir"
make || return 1
+}
+
+package() {
+ cd "$_builddir"
install -m755 -D sntpc "$pkgdir"/usr/sbin/sntpc
install -m755 -D "$srcdir"/sntpc.initd "$pkgdir"/etc/init.d/sntpc
install -m644 -D "$srcdir"/sntpc.confd "$pkgdir"/etc/conf.d/sntpc
}
-md5sums="60c64d975daa3a6f371e9e81538e38db sntpc-0.9.tar.bz2
+md5sums="5cdeb038c6cb0b86b76b9f64e2ccd85c sntpc-0.9.tar.bz2
1e542e12cf6eeff7140ddbd9dde1066a sntpc.initd
4ea1ceee01f94080be86188bde8f9adc sntpc.confd"
+sha256sums="ccb511ed7c21bc60c10d63112e9da3f1647c7c1847dc5785062dc19bdeed815e sntpc-0.9.tar.bz2
+f9adb5301e1046ee7f1499b3fb67607652136d15deef97f4f3818acb2cd5cfdd sntpc.initd
+edb737bb2c4980ee2f6c10485c5e7f04e8930beb41d6f04da80179ebbd2f3fd6 sntpc.confd"
+sha512sums="1aefd31b75089ac651c116c37aa429b40cf6b08d41ca37c6e11e90b34ffe6a39491b18de09760873a4ab3267ae0d2f0f2139313f2c8ca275fdf6515c89978633 sntpc-0.9.tar.bz2
+ec4bb30d1276d8bb9c096095d9789ce3754c80736bd3d3880232e8257c1f5c3a26b60ab349f60ce5a41fffff3ca18e07d268afe386b3e63bad733f1a777baa60 sntpc.initd
+2fcb7d45f4c6588fd5281c02161a4aebb7e0a9d259a2ac3aa6c3187617dc7029f05fbebbb227feace61cc706e37ca0acb18b0019a67c674c444498fd289a9975 sntpc.confd"