aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/arpalert
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2014-10-26 13:26:34 +0100
committerCarlo Landmeter <clandmeter@gmail.com>2014-10-26 13:26:34 +0100
commitc86412e05b3300d8b494a4fe2fc372da5fac72c9 (patch)
tree2102b039e45d0786ab5babdeab2d0c3e9cde7505 /unmaintained/arpalert
parentbb814b65d166a952445bc5d5976d30a17f108e55 (diff)
downloadaports-c86412e05b3300d8b494a4fe2fc372da5fac72c9.tar.bz2
aports-c86412e05b3300d8b494a4fe2fc372da5fac72c9.tar.xz
testing/arpalert: move to unmaintained
Diffstat (limited to 'unmaintained/arpalert')
-rw-r--r--unmaintained/arpalert/APKBUILD53
-rwxr-xr-xunmaintained/arpalert/arpalert.initd18
2 files changed, 71 insertions, 0 deletions
diff --git a/unmaintained/arpalert/APKBUILD b/unmaintained/arpalert/APKBUILD
new file mode 100644
index 0000000000..fa80ca8795
--- /dev/null
+++ b/unmaintained/arpalert/APKBUILD
@@ -0,0 +1,53 @@
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=arpalert
+pkgver=2.0.11
+pkgrel=1
+pkgdesc="Monitor ARP changes in ethernet networks"
+url="http://www.arpalert.org"
+arch="all"
+license="GPL2"
+depends=""
+depends_dev="libpcap-dev"
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://www.arpalert.org/src/$pkgname-$pkgver.tar.gz
+ $pkgname.initd"
+
+_builddir="$srcdir"/$pkgname-$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
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --exec-prefix=/usr \
+ --sysconfdir=/etc \
+ --sharedstatedir=/usr/share \
+ --localstatedir=/var \
+ --includedir=/usr/include \
+ --datarootdir=/usr/share \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
+}
+
+md5sums="4b2b7682b27c7f260716f59ecfa50ecc arpalert-2.0.11.tar.gz
+da046bdcd1dde63930a3353b37e35ddd arpalert.initd"
+sha256sums="d3166f0de57729902d84a61626794494c4eac80ee58241d07c813809328e62cd arpalert-2.0.11.tar.gz
+c413e956f253120455874c1d94ec24b09d896fa410974aa309eb31468e25306e arpalert.initd"
+sha512sums="8593b5f87c8435bc0dfb6b1d48b72705a109425410039341fddb49beddacb30c87e2b30a1f86cca17bb64aa407060ee5b9437ff2801b9869261ed91f6f5e141f arpalert-2.0.11.tar.gz
+0f0caf396601d199e649a35e078ab512d67fca020f207a3389968a2c9749fdeca3856359ba3d2650ef1dda5a1d399de39cd3e33a54df12258825646f0a626160 arpalert.initd"
diff --git a/unmaintained/arpalert/arpalert.initd b/unmaintained/arpalert/arpalert.initd
new file mode 100755
index 0000000000..2567dbab1b
--- /dev/null
+++ b/unmaintained/arpalert/arpalert.initd
@@ -0,0 +1,18 @@
+#!/sbin/runscript
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting arpalert"
+ start-stop-daemon --quiet --start --pidfile /var/run/arpalert.lock --exec /usr/sbin/arpalert -- -d
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping arpalert"
+ start-stop-daemon --quiet --stop --pidfile /var/run/arpalert.lock
+ eend $?
+}
+