aboutsummaryrefslogtreecommitdiffstats
path: root/community/rancid
diff options
context:
space:
mode:
authortmpfile <tmpfile@users.noreply.github.com>2017-05-14 15:14:00 -0300
committerNatanael Copa <ncopa@alpinelinux.org>2017-06-09 15:24:20 +0000
commitf8a9f7639f5a6b1f049b483dc74025fe7f8aa63a (patch)
tree3ce04e88073958d53099975b78ba478b9fd6fc4d /community/rancid
parent5d115f490cf1942fa380e7046e22a179aed6a99f (diff)
downloadaports-f8a9f7639f5a6b1f049b483dc74025fe7f8aa63a.tar.bz2
aports-f8a9f7639f5a6b1f049b483dc74025fe7f8aa63a.tar.xz
community/rancid: modernize abuild
Diffstat (limited to 'community/rancid')
-rw-r--r--community/rancid/APKBUILD31
1 files changed, 7 insertions, 24 deletions
diff --git a/community/rancid/APKBUILD b/community/rancid/APKBUILD
index 640c7221de..832e8b1f66 100644
--- a/community/rancid/APKBUILD
+++ b/community/rancid/APKBUILD
@@ -18,19 +18,9 @@ source="ftp://ftp.shrubbery.net/pub/rancid/rancid-$pkgver.tar.gz
rancid-2.3.2-conf.patch
rancid.logrotate"
-_builddir="$srcdir"/rancid-$pkgver
-prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
-
+builddir="$srcdir"/rancid-$pkgver
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--prefix=/usr \
--sysconfdir=/etc/rancid \
@@ -38,27 +28,20 @@ build() {
--infodir=/usr/share/info \
--localstatedir=/var \
--enable-conf-install \
- --with-svn \
- || return 1
- make || return 1
+ --with-svn
+ make
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
install -D -m644 "$srcdir"/rancid.logrotate \
- "$pkgdir"/etc/logrotate.d/rancid || return 1
+ "$pkgdir"/etc/logrotate.d/rancid
install -d -m 0755 -o rancid -g netadm "$pkgdir"/var/rancid
install -d -m 0755 -o rancid -g netadm "$pkgdir"/var/log/rancid
install -d -m 0755 -o rancid -g netadm "$pkgdir"/var/log/rancid/old
}
-md5sums="05c34f3f81c5cb97e046aa8c569e070c rancid-3.6.1.tar.gz
-bd2e1e80348d88a11ee838ff40270039 rancid-2.3.2-conf.patch
-97c733c7420fe140b51a75d676431daf rancid.logrotate"
-sha256sums="b7506b5e75eb324c41474b254e3b91ecd59bbeebd4b4155cd690ba1a6870a65a rancid-3.6.1.tar.gz
-c98a96e0c3a16a228a83e7570ca1adc27e73cdcd4cc718aa0e2956454b564e9f rancid-2.3.2-conf.patch
-5459497b88b9bfef122608a9a7fd70b23cfdf558617b62ab40cac5bc32226ad0 rancid.logrotate"
sha512sums="a0cd97cc8193232507186e87e0c86a22d04a31d1f69ff936e70fad7e5b3f58a2f8ef4d2d50e578d8f976e2a370c8d714ace4920bbceea70058db96abc238cee1 rancid-3.6.1.tar.gz
dbebdecb80483fff45cfdd7a541805f45ee4e180d47a79ce9b71c5aad012d6e782c9a9d29f1de0fc2b89642aeecfc90dfddb86a1e11564e30683fa55e7009d76 rancid-2.3.2-conf.patch
aefbdeb99acd6840ab7fe75602b4cec2ed07a4eb24d073a951feef22ab7e56aff098bed7e0ca042c977218a2311465780aa5e6203507da8ab43e132df9a21795 rancid.logrotate"