diff options
author | root <root@rshg054.dnsready.net> | 2012-12-08 02:04:18 -0800 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-12-08 02:04:18 -0800 |
commit | b8c6ff8db00ce5eec5e6f20a90e8f8ec993ef3d5 (patch) | |
tree | d5f2cb92d1607745717cde77e321269c384da4bb /community/igmpproxy | |
parent | 7de07e40e2c0c078a35c5092e1f2defb65d1741e (diff) |
Sat Dec 8 01:58:23 PST 2012
Diffstat (limited to 'community/igmpproxy')
-rw-r--r-- | community/igmpproxy/PKGBUILD | 33 | ||||
-rw-r--r-- | community/igmpproxy/igmpproxy.rc.d | 38 | ||||
-rw-r--r-- | community/igmpproxy/igmpproxy.service | 10 |
3 files changed, 81 insertions, 0 deletions
diff --git a/community/igmpproxy/PKGBUILD b/community/igmpproxy/PKGBUILD new file mode 100644 index 000000000..ab3e7e291 --- /dev/null +++ b/community/igmpproxy/PKGBUILD @@ -0,0 +1,33 @@ +# $Id: PKGBUILD 80944 2012-12-07 13:00:49Z spupykin $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Maintainer: Jan "heftig" Steffens <jan.steffens@gmail.com> +# Contributor: sda <sda00@himki.net> + +pkgname=igmpproxy +pkgver=0.1 +pkgrel=1 +pkgdesc="a simple multicast router for Linux only using the IGMP protocol" +arch=(i686 x86_64) +url="http://sourceforge.net/projects/igmpproxy" +license=('GPL') +depends=() +backup=("etc/igmpproxy.conf") +source=("http://downloads.sourceforge.net/sourceforge/igmpproxy/igmpproxy-$pkgver.tar.gz" + "igmpproxy.rc.d" + "igmpproxy.service") +md5sums=('c56f41ec195bc1fe016369bf74efc5a1' + '642054dd586e5b0e7f660863e8131f57' + '2ff8500f8a59cdfaf910e48cd54ab659') + +build() { + cd $srcdir/$pkgname-$pkgver + ./configure --prefix=/usr --sysconfdir=/etc + make +} + +package() { + cd $srcdir/$pkgname-$pkgver + make DESTDIR=$pkgdir install + install -Dm755 $srcdir/$pkgname.rc.d $pkgdir/etc/rc.d/$pkgname + install -Dm644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service +} diff --git a/community/igmpproxy/igmpproxy.rc.d b/community/igmpproxy/igmpproxy.rc.d new file mode 100644 index 000000000..5b88e94f1 --- /dev/null +++ b/community/igmpproxy/igmpproxy.rc.d @@ -0,0 +1,38 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions + +PID=`pidof -o %PPID /usr/sbin/igmpproxy` +case "$1" in + start) + stat_busy "Starting igmpproxy routing daemon" + if [ -z "$PID" ]; then + /usr/sbin/igmpproxy /etc/igmpproxy.conf & + fi + if [ ! -z "$PID" -o $? -gt 0 ]; then + stat_fail + else + disown + add_daemon igmpproxy + stat_done + fi + ;; + stop) + stat_busy "Stopping igmpproxy routing daemon" + [ ! -z "$PID" ] && kill $PID &>/dev/null + if [ $? -gt 0 ]; then + stat_fail + else + rm_daemon igmpproxy + stat_done + fi + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" +esac diff --git a/community/igmpproxy/igmpproxy.service b/community/igmpproxy/igmpproxy.service new file mode 100644 index 000000000..c10ec63b1 --- /dev/null +++ b/community/igmpproxy/igmpproxy.service @@ -0,0 +1,10 @@ +[Unit] +Description=IGMP proxy +After=network.target + +[Service] +Type=simple +ExecStart=/usr/sbin/igmpproxy /etc/igmpproxy.conf + +[Install] +WantedBy=multi-user.target |