diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-08-25 10:56:50 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-08-25 10:56:50 +0000 |
commit | 93f0b82658be2fcc8d5a15c4e0cce1a9b0777300 (patch) | |
tree | 4d3b3027523bc84b45e4e12786491ea1ff68c2c3 | |
parent | 1ea017abc1c6c3f22b316265f73446dc52c9ab8a (diff) | |
download | alpine_aports-93f0b82658be2fcc8d5a15c4e0cce1a9b0777300.tar.bz2 alpine_aports-93f0b82658be2fcc8d5a15c4e0cce1a9b0777300.tar.xz alpine_aports-93f0b82658be2fcc8d5a15c4e0cce1a9b0777300.zip |
main/fping: setuid root
ref #730
-rw-r--r-- | main/fping/APKBUILD | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/main/fping/APKBUILD b/main/fping/APKBUILD index dbb311294f..aaf5a2d3f6 100644 --- a/main/fping/APKBUILD +++ b/main/fping/APKBUILD | |||
@@ -1,7 +1,9 @@ | |||
1 | # Maintainer: Natanael Copa <ncopa@alpinelinux.org> | ||
2 | |||
1 | pkgname=fping | 3 | pkgname=fping |
2 | pkgver=2.4_beta2 | 4 | pkgver=2.4_beta2 |
3 | _myver=2.4b2_to | 5 | _myver=2.4b2_to |
4 | pkgrel=3 | 6 | pkgrel=4 |
5 | pkgdesc="A utility to ping multiple hosts at once" | 7 | pkgdesc="A utility to ping multiple hosts at once" |
6 | url="http://www.fping.com/" | 8 | url="http://www.fping.com/" |
7 | arch="all" | 9 | arch="all" |
@@ -13,12 +15,18 @@ subpackages="$pkgname-doc" | |||
13 | #source="http://www.$pkgname.com/download/$pkgname-${myver}.tar.gz" | 15 | #source="http://www.$pkgname.com/download/$pkgname-${myver}.tar.gz" |
14 | source=http://distfiles.gentoo.org/distfiles/fping-${_myver}.tar.gz | 16 | source=http://distfiles.gentoo.org/distfiles/fping-${_myver}.tar.gz |
15 | 17 | ||
18 | _builddir="$srcdir"/$pkgname-$_myver | ||
16 | 19 | ||
17 | build () { | 20 | build () { |
18 | cd $startdir/src/$pkgname-${_myver} | 21 | cd "$_builddir" |
19 | ./configure --prefix=/usr \ | 22 | ./configure --prefix=/usr \ |
20 | --mandir=/usr/share/man | 23 | --mandir=/usr/share/man |
21 | make || return 1 | 24 | make || return 1 |
22 | make install DESTDIR="$pkgdir" | 25 | } |
26 | |||
27 | package() { | ||
28 | cd "$_builddir" | ||
29 | make install DESTDIR="$pkgdir" || return 1 | ||
30 | chmod 4755 "$pkgdir"/usr/sbin/fping | ||
23 | } | 31 | } |
24 | md5sums="d5e8be59e307cef76bc479e1684df705 fping-2.4b2_to.tar.gz" | 32 | md5sums="d5e8be59e307cef76bc479e1684df705 fping-2.4b2_to.tar.gz" |