diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-03-20 08:13:31 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-03-20 08:13:31 +0000 |
commit | 6277138938cfe1935fb6d189e19860874d9fb903 (patch) | |
tree | 39ad3d95d9278dbbde34a1b695abb93353550362 /extra | |
parent | 399d63b082b5275f4b1ddca2670b5525de31110e (diff) | |
parent | 7598c40207fc8061cf25872b7624cec261cad6c4 (diff) | |
download | aports-6277138938cfe1935fb6d189e19860874d9fb903.tar.bz2 aports-6277138938cfe1935fb6d189e19860874d9fb903.tar.xz |
Merge remote branch 'ms13sp/master'
Diffstat (limited to 'extra')
-rw-r--r-- | extra/acf-clamav/APKBUILD | 21 | ||||
-rw-r--r-- | extra/acf-clamsmtp/APKBUILD | 21 | ||||
-rw-r--r-- | extra/acf-dhcp/APKBUILD | 21 | ||||
-rw-r--r-- | extra/acf-dovecot/APKBUILD | 21 | ||||
-rw-r--r-- | extra/acf-openvpn/APKBUILD | 21 | ||||
-rw-r--r-- | extra/acf-pingu/APKBUILD | 21 | ||||
-rw-r--r-- | extra/acf-postfix/APKBUILD | 21 | ||||
-rw-r--r-- | extra/acf-tcpproxy/APKBUILD | 21 | ||||
-rw-r--r-- | extra/arpwatch/APKBUILD | 36 | ||||
-rw-r--r-- | extra/arpwatch/arpwatch.confd | 12 | ||||
-rw-r--r-- | extra/arpwatch/arpwatch.initd | 37 | ||||
-rw-r--r-- | extra/ctags/APKBUILD | 26 | ||||
-rw-r--r-- | extra/dhcp/APKBUILD | 33 | ||||
-rw-r--r-- | extra/dhcp/dhcp.confd | 30 | ||||
-rw-r--r-- | extra/dhcp/dhcp.initd | 72 | ||||
-rw-r--r-- | extra/snort/APKBUILD | 4 | ||||
-rw-r--r-- | extra/tcpproxy/APKBUILD | 25 | ||||
-rw-r--r-- | extra/tcpproxy/tcpproxy.initd | 14 |
18 files changed, 455 insertions, 2 deletions
diff --git a/extra/acf-clamav/APKBUILD b/extra/acf-clamav/APKBUILD new file mode 100644 index 0000000000..834f9ca5d9 --- /dev/null +++ b/extra/acf-clamav/APKBUILD @@ -0,0 +1,21 @@ +# Contributor: Michael Mason <ms13sp@gmail.com> +pkgname=acf-clamav +pkgver=0.1.0 +pkgrel=0 +pkgdesc="A web-based system administration interface for clamav" +url="http://dev.alpinelinux.org/alpine/acf" +license="GPL-2" +depends="acf-core lua clamav" +makedepends="" +install= +subpackages="" +source="http://dev.alpinelinux.org/alpine/acf/${pkgname:4}/$pkgname-$pkgver.tar.bz2" + +build() { + cd "$srcdir/$pkgname-$pkgver" + + make DESTDIR="$pkgdir" install + +} + +md5sums="41548eb88627e9ea896ca3fd8a9b3eef acf-clamav-0.1.0.tar.bz2" diff --git a/extra/acf-clamsmtp/APKBUILD b/extra/acf-clamsmtp/APKBUILD new file mode 100644 index 0000000000..71c055d289 --- /dev/null +++ b/extra/acf-clamsmtp/APKBUILD @@ -0,0 +1,21 @@ +# Contributor: Michael Mason <ms13sp@gmail.com> +pkgname=acf-clamsmtp +pkgver=0.1.1 +pkgrel=0 +pkgdesc="A web-based system administration interface for clamsmtp" +url="http://dev.alpinelinux.org/alpine/acf" +license="GPL-2" +depends="acf-core lua clamsmtp" +makedepends="" +install= +subpackages="" +source="http://dev.alpinelinux.org/alpine/acf/${pkgname:4}/$pkgname-$pkgver.tar.bz2" + +build() { + cd "$srcdir/$pkgname-$pkgver" + + make DESTDIR="$pkgdir" install + +} + +md5sums="05eeabf4efd0d20b891844693ba427be acf-clamsmtp-0.1.1.tar.bz2" diff --git a/extra/acf-dhcp/APKBUILD b/extra/acf-dhcp/APKBUILD new file mode 100644 index 0000000000..6b19f861f6 --- /dev/null +++ b/extra/acf-dhcp/APKBUILD @@ -0,0 +1,21 @@ +# Contributor: Michael Mason <ms13sp@gmail.com> +pkgname=acf-dhcp +pkgver=0.3.10 +pkgrel=0 +pkgdesc="A web-based system administration interface for dhcp" +url="http://dev.alpinelinux.org/alpine/acf" +license="GPL-2" +depends="acf-core lua dhcp" +makedepends="" +install= +subpackages="" +source="http://dev.alpinelinux.org/alpine/acf/${pkgname:4}/$pkgname-$pkgver.tar.bz2" + +build() { + cd "$srcdir/$pkgname-$pkgver" + + make DESTDIR="$pkgdir" install + +} + +md5sums="c83c0a657c36f9b71e0dbf271095afa5 acf-dhcp-0.3.10.tar.bz2" diff --git a/extra/acf-dovecot/APKBUILD b/extra/acf-dovecot/APKBUILD new file mode 100644 index 0000000000..80d9bf9b64 --- /dev/null +++ b/extra/acf-dovecot/APKBUILD @@ -0,0 +1,21 @@ +# Contributor: Michael Mason <ms13sp@gmail.com> +pkgname=acf-dovecot +pkgver=0.1.0 +pkgrel=0 +pkgdesc="A web-based system administration interface for dovecot" +url="http://dev.alpinelinux.org/alpine/acf" +license="GPL-2" +depends="acf-core lua dovecot" +makedepends="" +install= +subpackages="" +source="http://dev.alpinelinux.org/alpine/acf/${pkgname:4}/$pkgname-$pkgver.tar.bz2" + +build() { + cd "$srcdir/$pkgname-$pkgver" + + make DESTDIR="$pkgdir" install + +} + +md5sums="6db0db877bdcb7b1dede836e182e1201 acf-dovecot-0.1.0.tar.bz2" diff --git a/extra/acf-openvpn/APKBUILD b/extra/acf-openvpn/APKBUILD new file mode 100644 index 0000000000..83d7d6b1ed --- /dev/null +++ b/extra/acf-openvpn/APKBUILD @@ -0,0 +1,21 @@ +# Contributor: Michael Mason <ms13sp@gmail.com> +pkgname=acf-openvpn +pkgver=0.4.1 +pkgrel=0 +pkgdesc="A web-based system administration interface for openvpn" +url="http://dev.alpinelinux.org/alpine/acf" +license="GPL-2" +depends="acf-core lua openvpn" +makedepends="" +install= +subpackages="" +source="http://dev.alpinelinux.org/alpine/acf/${pkgname:4}/$pkgname-$pkgver.tar.bz2" + +build() { + cd "$srcdir/$pkgname-$pkgver" + + make DESTDIR="$pkgdir" install + +} + +md5sums="4730a60d862b08c6e9de2a474acb35be acf-openvpn-0.4.1.tar.bz2" diff --git a/extra/acf-pingu/APKBUILD b/extra/acf-pingu/APKBUILD new file mode 100644 index 0000000000..284cd1dbfd --- /dev/null +++ b/extra/acf-pingu/APKBUILD @@ -0,0 +1,21 @@ +# Contributor: Michael Mason <ms13sp@gmail.com> +pkgname=acf-pingu +pkgver=0.1.0 +pkgrel=0 +pkgdesc="A web-based system administration interface for pingu" +url="http://dev.alpinelinux.org/alpine/acf" +license="GPL-2" +depends="acf-core lua pingu" +makedepends="" +install= +subpackages="" +source="http://dev.alpinelinux.org/alpine/acf/${pkgname:4}/$pkgname-$pkgver.tar.bz2" + +build() { + cd "$srcdir/$pkgname-$pkgver" + + make DESTDIR="$pkgdir" install + +} + +md5sums="df1c849d63896a4efa3ff796395ee392 acf-pingu-0.1.0.tar.bz2" diff --git a/extra/acf-postfix/APKBUILD b/extra/acf-postfix/APKBUILD new file mode 100644 index 0000000000..3558c3861f --- /dev/null +++ b/extra/acf-postfix/APKBUILD @@ -0,0 +1,21 @@ +# Contributor: Michael Mason <ms13sp@gmail.com> +pkgname=acf-postfix +pkgver=0.1.1 +pkgrel=0 +pkgdesc="A web-based system administration interface for postfix" +url="http://dev.alpinelinux.org/alpine/acf" +license="GPL-2" +depends="acf-core lua postfix" +makedepends="" +install= +subpackages="" +source="http://dev.alpinelinux.org/alpine/acf/${pkgname:4}/$pkgname-$pkgver.tar.bz2" + +build() { + cd "$srcdir/$pkgname-$pkgver" + + make DESTDIR="$pkgdir" install + +} + +md5sums="d7c7bee3a73988e348b7223f9caf7ce3 acf-postfix-0.1.1.tar.bz2" diff --git a/extra/acf-tcpproxy/APKBUILD b/extra/acf-tcpproxy/APKBUILD new file mode 100644 index 0000000000..1f4b785c06 --- /dev/null +++ b/extra/acf-tcpproxy/APKBUILD @@ -0,0 +1,21 @@ +# Contributor: Michael Mason <ms13sp@gmail.com> +pkgname=acf-tcpproxy +pkgver=0.0.4 +pkgrel=0 +pkgdesc="A web-based system administration interface for tcpproxy" +url="http://dev.alpinelinux.org/alpine/acf" +license="GPL-2" +depends="acf-core lua tcpproxy" +makedepends="" +install= +subpackages="" +source="http://dev.alpinelinux.org/alpine/acf/${pkgname:4}/$pkgname-$pkgver.tar.bz2" + +build() { + cd "$srcdir/$pkgname-$pkgver" + + make DESTDIR="$pkgdir" install + +} + +md5sums="53df7f696700500f850bbcb905f208ea acf-tcpproxy-0.0.4.tar.bz2" diff --git a/extra/arpwatch/APKBUILD b/extra/arpwatch/APKBUILD new file mode 100644 index 0000000000..ed18e59661 --- /dev/null +++ b/extra/arpwatch/APKBUILD @@ -0,0 +1,36 @@ +# Contributor: Michael Mason <ms13sp@gmail.com> +# Maintainer: +pkgname=arpwatch +pkgver=2.1a15 +pkgrel=0 +pkgdesc="Ethernet monitoring program" +url="http://www-nrg.ee.lbl.gov/" +license="GPL" +depends="uclibc libpcap" +makedepends="libpcap-dev" +install= +subpackages="" +source="ftp://ftp.ee.lbl.gov/$pkgname.tar.gz + arpwatch.confd + arpwatch.initd" + +build() { + cd "$srcdir/$pkgname-$pkgver" + + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info + make -j1 || return 1 + #install command wouldn't create directory ? + mkdir -p "$pkgdir"/usr/sbin/ + make -j1 DESTDIR="$pkgdir" install + + install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname + install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname + +} + +md5sums="cebfeb99c4a7c2a6cee2564770415fe7 arpwatch.tar.gz +dc8300ce5f02d6be95899a2982397064 arpwatch.confd +404226ad0d10ce9b46b76f058e572426 arpwatch.initd" diff --git a/extra/arpwatch/arpwatch.confd b/extra/arpwatch/arpwatch.confd new file mode 100644 index 0000000000..f44221aa36 --- /dev/null +++ b/extra/arpwatch/arpwatch.confd @@ -0,0 +1,12 @@ +# Config file for /etc/init.d/arpwatch +# see arpwatch.8 for more information + +#IFACES="eth0 eth1" +IFACES="eth0" + +# Additional options to pass to arpwatch. +OPTIONS="-N -p" + +# Comment this line if you wish arpwatch to run as root user (not recommended) +ARPUSER="arpwatch" + diff --git a/extra/arpwatch/arpwatch.initd b/extra/arpwatch/arpwatch.initd new file mode 100644 index 0000000000..e039e1db8a --- /dev/null +++ b/extra/arpwatch/arpwatch.initd @@ -0,0 +1,37 @@ +#!/sbin/runscript +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/www/viewcvs.gentoo.org/raw_cvs/gentoo-x86/net-analyzer/arpwatch/files/arpwatch.initd,v 1.1 2007/06/02 22:37:16 jokey Exp $ + +depend() { + need net +} + +start() { + for IFACE in ${IFACES} + do + ebegin "Starting arpwatch on ${IFACE}" + DATAFILE=/var/lib/arpwatch/${IFACE}.dat + [ ! -f ${DATAFILE} ] && touch ${DATAFILE} + + if [ -z ${ARPUSER} ]; then + start-stop-daemon --start --quiet --pidfile=/var/run/arpwatch.${IFACE}.pid --exec \ + /usr/sbin/arpwatch -- -i ${IFACE} -f ${DATAFILE} -P /var/run/arpwatch.${IFACE}.pid ${OPTIONS} + else + chown ${ARPUSER} ${DATAFILE} + start-stop-daemon --start --quiet --pidfile=/var/run/arpwatch.${IFACE}.pid --exec \ + /usr/sbin/arpwatch -- -i $IFACE -u ${ARPUSER} -f ${DATAFILE} -P /var/run/arpwatch.${IFACE}.pid ${OPTIONS} + fi + eend $? + done +} + +stop() { + for IFACE in ${IFACES} + do + ebegin "Stopping arpwatch on ${IFACE}" + start-stop-daemon --stop --quiet --pidfile=/var/run/arpwatch.${IFACE}.pid --exec \ + /usr/sbin/arpwatch + eend $? + done +} diff --git a/extra/ctags/APKBUILD b/extra/ctags/APKBUILD new file mode 100644 index 0000000000..0d45e287c3 --- /dev/null +++ b/extra/ctags/APKBUILD @@ -0,0 +1,26 @@ +# Contributor: Michael Mason <ms13sp@gmail.com> +pkgname=ctags +pkgver=5.7 +pkgrel=0 +pkgdesc="Generator of tags for all types of C/C++ languages" +url="http://ctags.sourceforge.net/" +license="GPL" +depends="uclibc" +makedepends="" +install= +subpackages="" +source="http://prdownloads.sourceforge.net/ctags/$pkgname-$pkgver.tar.gz" + +build() { + cd "$srcdir/$pkgname-$pkgver" + + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info + make || return 1 + + install -m755 -D $pkgname "$pkgdir"/usr/bin/$pkgname +} + +md5sums="643cab63b39c8a24377dc4c781547d40 ctags-5.7.tar.gz" diff --git a/extra/dhcp/APKBUILD b/extra/dhcp/APKBUILD new file mode 100644 index 0000000000..f3d4ec271c --- /dev/null +++ b/extra/dhcp/APKBUILD @@ -0,0 +1,33 @@ +# Contributor: +# Maintainer: +pkgname=dhcp +pkgver=4.1.0 +pkgrel=0 +pkgdesc="ISC Dynamic Host Configuration Protocol (DHCP)" +url="https://www.isc.org/" +license="GPL" +depends="uclibc" +makedepends="" +install= +subpackages="$pkgname-doc $pkgname-dev" +source="http://ftp.isc.org/isc/dhcp/$pkgname-$pkgver.tar.gz + dhcp.confd + dhcp.initd" + +build() { + cd "$srcdir/$pkgname-$pkgver" + + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info + make || return 1 + make DESTDIR="$pkgdir" install + + install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname + install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname +} + +md5sums="1fffed2e8c3d67b111316d6a9b33db7a dhcp-4.1.0.tar.gz +df32707f5bbe5363306420b5dc6e6b40 dhcp.confd +5df9a87539bedc98a1cbc7e38b290928 dhcp.initd" diff --git a/extra/dhcp/dhcp.confd b/extra/dhcp/dhcp.confd new file mode 100644 index 0000000000..df09ec7082 --- /dev/null +++ b/extra/dhcp/dhcp.confd @@ -0,0 +1,30 @@ +# /etc/conf.d/dhcpd: config file for /etc/init.d/dhcpd + +# If you require more than one instance of dhcpd you can create symbolic +# links to dhcpd service like so +# cd /etc/init.d +# ln -s dhcpd dhcpd.foo +# cd ../conf.d +# cp dhcpd dhcpd.foo +# Now you can edit dhcpd.foo and specify a different configuration file. +# You'll also need to specify a pidfile in that dhcpd.conf file. +# See the pid-file-name option in the dhcpd.conf man page for details. + +# If you wish to run dhcpd in a chroot, uncomment the following line +# DHCPD_CHROOT="/chroot/dhcp" + +# Then run emerge dhcp --config +# All file paths below are relative to the chroot. +# You can specify a different chroot directory but MAKE SURE it's empty. + +# Specify a configuration file - the default is /etc/dhcp/dhcpd.conf +# DHCPD_CONF="/etc/dhcp/dhcpd.conf" + +# Configure which interface or interfaces to for dhcpd to listen on. +# List all interfaces space separated. If this is not specified then +# we listen on all interfaces. +# DHCPD_IFACE="" + +# Insert any other dhcpd options - see the man page for a full list. +# DHCPD_OPTS="" + diff --git a/extra/dhcp/dhcp.initd b/extra/dhcp/dhcp.initd new file mode 100644 index 0000000000..cc9727fc7c --- /dev/null +++ b/extra/dhcp/dhcp.initd @@ -0,0 +1,72 @@ +#!/sbin/runscript +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/www/viewcvs.gentoo.org/raw_cvs/gentoo-x86/net-misc/dhcp/files/dhcpd.init,v 1.5 2007/04/02 12:34:01 uberlord Exp $ + +DHCPD_CONF=${DHCPD_CONF:-/etc/dhcp/dhcpd.conf} + +depend() { + need net + use logger dns +} + +get_var() { + sed -n 's/^[[:blank:]]\?'"$1"' "*\([^#";]\+\).*/\1/p' \ + "${DHCPD_CHROOT}/${DHCPD_CONF}" +} + +start() { + # Work out our cffile if it's on our DHCPD_OPTS + case " ${DHCPD_OPTS} " in + *" -cf "*) + DHCPD_CONF=" ${DHCPD_OPTS} " + DHCPD_CONF="${DHCPD_CONF##* -cf }" + DHCPD_CONF="${DHCPD_CONF%% *}" + ;; + *) DHCPD_OPTS="${DHCPD_OPTS} -cf ${DHCPD_CONF}" + ;; + esac + + if [ ! -f "${DHCPD_CHROOT}/${DHCPD_CONF}" ] ; then + eerror "${DHCPD_CHROOT}/${DHCPD_CONF} does not exist" + return 1 + fi + + local leasefile="$(get_var lease-file-name)" + leasefile="${DHCPD_CHROOT}/${leasefile:-/var/lib/dhcp/dhcpd.leases}" + if [ ! -f "${leasefile}" ] ; then + ebegin "Creating ${leasefile}" + touch "${leasefile}" + chown dhcp:dhcp "${leasefile}" + eend $? || return 1 + fi + + # Setup LD_PRELOAD so name resolution works in our chroot. + if [ -n "${DHCPD_CHROOT}" ] ; then + LD_PRELOAD="${LD_PRELOAD} /usr/lib/libresolv.so" + export LD_PRELOAD="${LD_PRELOAD} /usr/lib/libnss_dns.so" + fi + + local pidfile="$(get_var pid-file-name)" + pidfile="${pidfile:-/var/run/dhcp/dhcpd.pid}" + + ebegin "Starting ${DHCPD_CHROOT:+chrooted }${SVCNAME}" + start-stop-daemon --start --exec /usr/sbin/dhcpd \ + --pidfile "${DHCPD_CHROOT}/${pidfile}" \ + -- ${DHCPD_OPTS} -q -pf "${pidfile}" \ + -user dhcp -group dhcp \ + ${DHCPD_CHROOT:+-chroot} ${DHCPD_CHROOT} ${DHCPD_IFACE} + eend $? \ + && save_options chroot "${DHCPD_CHROOT}" \ + && save_options pidfile "${pidfile}" +} + +stop() { + local chroot="$(get_options chroot)" + + ebegin "Stopping ${chroot:+chrooted }${SVCNAME}" + start-stop-daemon --stop --exec /usr/sbin/dhcpd \ + --pidfile "${chroot}/$(get_options pidfile)" + eend $? +} + diff --git a/extra/snort/APKBUILD b/extra/snort/APKBUILD index 8d2b34a00c..14098189cf 100644 --- a/extra/snort/APKBUILD +++ b/extra/snort/APKBUILD @@ -27,8 +27,8 @@ build() { make -j1 || return 1 make -j1 DESTDIR="$pkgdir" install - install -D -m 755 ../snort.initd ${pkgdir}/etc/init.d/snort - install -D -m 644 ../snort.confd ${pkgdir}/etc/conf.d/snort + install -D -m 755 ../snort.initd "$pkgdir"/etc/init.d/snort + install -D -m 644 ../snort.confd "$pkgdir"/etc/conf.d/snort } md5sums="f75547da33446ddb4ca07eefd9ce31dc snort-2.8.3.2.tar.gz diff --git a/extra/tcpproxy/APKBUILD b/extra/tcpproxy/APKBUILD new file mode 100644 index 0000000000..fb7d1226d7 --- /dev/null +++ b/extra/tcpproxy/APKBUILD @@ -0,0 +1,25 @@ +# Contributor: Michael Mason <ms13sp@gmail.com> +pkgname=tcpproxy +pkgver=2.0.0-beta15 +pkgrel=0 +pkgdesc="Transparent TCP Proxy" +url="http://www.quietsche-entchen.de/cgi-bin/wiki.cgi/proxies/TcpProxy" +license="GPL" +depends="uclibc" +makedepends="ctags" +install="" +subpackages="" +source="http://www.quietsche-entchen.de/download/$pkgname-$pkgver.tar.gz + tcpproxy.initd" + +build() { + cd "$srcdir/$pkgname-$pkgver" + + make || return 1 + + install -m755 -D "$pkgname" "$pkgdir"/usr/sbin/"$pkgname" + install -Dm 755 "$startdir"/$pkgname.initd $pkgdir/etc/init.d/$pkgname +} + +md5sums="e946f807049d6296f54aa57b5c17f1c8 tcpproxy-2.0.0-beta15.tar.gz +f13fccf076e24df1352dfb884aa7b880 tcpproxy.initd" diff --git a/extra/tcpproxy/tcpproxy.initd b/extra/tcpproxy/tcpproxy.initd new file mode 100644 index 0000000000..a7fd4292db --- /dev/null +++ b/extra/tcpproxy/tcpproxy.initd @@ -0,0 +1,14 @@ +#!/sbin/runscript + +DAEMON=/usr/sbin/tcpproxy +start() { + ebegin "Starting tcpproxy" + start-stop-daemon -S -x $DAEMON -- $TCPPROXY_OPTS + eend $? +} + +stop() { + ebegin "Stopping tcpproxy" + start-stop-daemon -K -x $DAEMON + eend $? +} |