aboutsummaryrefslogtreecommitdiffstats
path: root/community/dhcp-probe/APKBUILD
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2017-07-17 12:03:38 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2017-07-17 12:03:38 +0000
commit97c9993c33ae9d2b8d0414343d426f8a146ea7aa (patch)
tree5905319ae73ff27bf32b5534670e9043fc189817 /community/dhcp-probe/APKBUILD
parent4c201b5c2fb07804277fe84195693529bb5a1aea (diff)
downloadaports-97c9993c33ae9d2b8d0414343d426f8a146ea7aa.tar.bz2
aports-97c9993c33ae9d2b8d0414343d426f8a146ea7aa.tar.xz
community/dhcp-probe: updated url, improved APKBUILD
Diffstat (limited to 'community/dhcp-probe/APKBUILD')
-rw-r--r--community/dhcp-probe/APKBUILD20
1 files changed, 9 insertions, 11 deletions
diff --git a/community/dhcp-probe/APKBUILD b/community/dhcp-probe/APKBUILD
index 7a7d8e7928..6e7e036e42 100644
--- a/community/dhcp-probe/APKBUILD
+++ b/community/dhcp-probe/APKBUILD
@@ -3,14 +3,12 @@
pkgname=dhcp-probe
_pkgname=dhcp_probe
pkgver=1.3.0
-pkgrel=3
+pkgrel=4
pkgdesc="Allows network administrators to make calculations that will assist in subnetting a network"
-url="http://www.net.princeton.edu/software/dhcp_probe/"
+url="https://www.net.princeton.edu/software/dhcp_probe/"
arch="all"
license="GPL"
-depends=""
makedepends="libnet-dev libpcap-dev"
-install=""
subpackages="$pkgname-doc"
source="http://www.net.princeton.edu/software/$_pkgname/$_pkgname-$pkgver.tar.gz
$pkgname.initd
@@ -18,25 +16,25 @@ source="http://www.net.princeton.edu/software/$_pkgname/$_pkgname-$pkgver.tar.gz
builddir="$srcdir"/$_pkgname-$pkgver
prepare() {
- default_prepare || return 1
- update_config_guess || return 1
+ default_prepare
+ update_config_guess
}
build() {
cd "$builddir"
./configure --prefix=/usr
- make || return 1
+ make
}
package() {
local f
cd "$builddir"
make DESTDIR="$pkgdir" install
mkdir -p "$srcdir"/etc/dhcp-probe
- install -Dm755 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname || return 1
- install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname || return 1
- install -Dm755 "$builddir"/extras/dhcp_probe.cf.sample "$pkgdir"/etc/dhcp-probe/dhcp_probe.cf || return 1
+ install -Dm755 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
+ install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
+ install -Dm755 "$builddir"/extras/dhcp_probe.cf.sample "$pkgdir"/etc/dhcp-probe/dhcp_probe.cf
for f in dhcp_probe_notify dhcp_probe_notify2 mail-throttled; do
- install -Dm755 "$builddir"/extras/$f "$pkgdir"/etc/dhcp-probe/$f || return 1
+ install -Dm755 "$builddir"/extras/$f "$pkgdir"/etc/dhcp-probe/$f
done
}
md5sums="8067e696fbd88120bdcc2ffef4b64da2 dhcp_probe-1.3.0.tar.gz