aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authortmpfile <tmpfile@users.noreply.github.com>2017-05-14 13:48:00 -0300
committerNatanael Copa <ncopa@alpinelinux.org>2017-06-09 13:14:23 +0000
commit481ab6a5d5737b8400ec5cc6cc2d35d1d1a55e5c (patch)
treedf453109df10eb9c902907e2ee295b7c3786fae1 /main
parent2a9cf9243b74b00d7428a4a8f71f7ab95a3fc3cd (diff)
downloadaports-481ab6a5d5737b8400ec5cc6cc2d35d1d1a55e5c.tar.bz2
aports-481ab6a5d5737b8400ec5cc6cc2d35d1d1a55e5c.tar.xz
main/oidentd: modernize abuild
Diffstat (limited to 'main')
-rw-r--r--main/oidentd/APKBUILD33
1 files changed, 7 insertions, 26 deletions
diff --git a/main/oidentd/APKBUILD b/main/oidentd/APKBUILD
index 9736f40bfd..747cf41436 100644
--- a/main/oidentd/APKBUILD
+++ b/main/oidentd/APKBUILD
@@ -16,35 +16,26 @@ oidentd.conf
oidentd.initd
oidentd.confd"
-_builddir="$srcdir/$pkgname-$pkgver"
+builddir="$srcdir/$pkgname-$pkgver"
prepare() {
- cd "$_builddir"
- for i in $source; do
- case $i in
- patch*|*.patch)
- msg "Applying $i"
- patch -p1 -i "$srcdir"/$i || return 1
- ;;
- esac
- done
- update_config_sub || return 1
+ default_prepare
+ update_config_sub
}
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
- --infodir=/usr/share/info \
- || return 1
- make || return 1
+ --infodir=/usr/share/info
+ make
}
package() {
- cd "$_builddir"
+ cd "$builddir"
make DESTDIR="$pkgdir" install
install -D -m755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
install -D -m644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
@@ -52,16 +43,6 @@ package() {
}
-md5sums="c3d9a56255819ef8904b867284386911 oidentd-2.0.8.tar.gz
-5396469094f9eed0561e0f40584829b6 fix-inline.patch
-d9c40e4d6a0bde685a359ad49b4eada2 oidentd.conf
-8177b7479312db47fd952eb69766a403 oidentd.initd
-05a43d3987754f179f4e31bbe61ff315 oidentd.confd"
-sha256sums="a54cbed187281f8d5a301d1d8fd5cb0f30bfb13a5a8e9ab752ace76c1010fb6f oidentd-2.0.8.tar.gz
-1e114212783f817e917840da370a8a63cbd7def3d66ca27261f322f185e89683 fix-inline.patch
-fe91a7af10e55c90a8468ba529012f8359507353035d72c669b535c8b84eb9dc oidentd.conf
-beac7a3067d44dcd9682a016d35564b40433b024be2b3b45d2f9433ac818a7d8 oidentd.initd
-acdd88d817474e392e8f07b0f00579007a71340d00a5520d7a2661ecf4a7e5f4 oidentd.confd"
sha512sums="86229a4ef9892121c25a7140616e180f862ca34b73ea3ad9f0fbb008f657abb17e9f14c2c25ae14c14bfc14bf1ea10b50fd68318631a9c52227bbfd6e6d43288 oidentd-2.0.8.tar.gz
797b5d541f50a9ac7c5bc043c7e6deda75617caac3f58438cf12bba9e2ece813495f31ce17b3fc0d32be2ff8278e8789108ecfebb01072874b9ac7d6e758ec81 fix-inline.patch
a05de9b08f87a200309c39d3bc3aba0aa2c6461c3c43a9d851299e6083f0ca9a362409b0db93ca069c7a50d3a14169a308aea51b3d42ebf0180a4b4c99bf5126 oidentd.conf