Commit de41c737 authored by Carlo Lanmdeter's avatar Carlo Lanmdeter

Merge commit 'ncopa/master'

parents c7fa2182 32f047af
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=alpine-baselayout
pkgver=2.0_alpha5
pkgver=2.0_alpha6
pkgrel=0
pkgdesc="Alpine base dir structure and init scripts"
url=http://git.alpinelinux.org/cgit/alpine-baselayout
......@@ -23,7 +23,9 @@ build() {
# cd $srcdir/$_gitname
# git checkout -b $pkgver @{`echo $pkgver | tr . -`} || return 1
# workaround
sed -i -e '/coldplug/d' init.d/Makefile
make
make install PREFIX= DESTDIR="$pkgdir" || return 1
}
md5sums="4ecfe2b52e2a3f84d5c689612a4e39cb alpine-baselayout-2.0_alpha5.tar.bz2"
md5sums="09aca19e816ce12b0410f314a5b65f95 alpine-baselayout-2.0_alpha6.tar.bz2"
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=alpine-conf
pkgver=2.0_alpha3
pkgver=2.0_alpha4
pkgrel=0
pkgdesc="Alpine configuration management scripts"
url=http://git.alpinelinux.org/cgit/$pkgname
......@@ -15,4 +15,4 @@ build() {
ln -s lbu "$pkgdir"/sbin/lbu_$i
done
}
md5sums="94860a9e4e0578557df4ed345e058b1d alpine-conf-2.0_alpha3.tar.bz2"
md5sums="8c828f797c85bd411db8fe5b0dfb4765 alpine-conf-2.0_alpha4.tar.bz2"
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=e2fsprogs
pkgver=1.41.3
pkgrel=2
pkgrel=3
pkgdesc="Standard Ext2/3/4 filesystem utilities"
url="http://e2fsprogs.sourceforge.net"
license="GPL LGPL MIT"
......@@ -23,11 +23,13 @@ build () {
}
libuuid() {
depends="uclibc"
mkdir -p "$subpkgdir"/lib
mv "$pkgdir"/lib/libuuid* "$subpkgdir"/lib/
}
libcom_err() {
depends="uclibc"
mkdir -p "$subpkgdir"/lib
mv "$pkgdir"/lib/libcom_err* "$subpkgdir"/lib/
}
......
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=linux-grsec
pkgver=2.6.28.7
pkgrel=0
pkgrel=1
pkgdesc="Linux kernel with grsecurity"
url=http://grsecurity.net
arch=i486
......@@ -31,4 +31,4 @@ dev() {
"$subpkgdir"/usr/share/$pkgname/config
}
md5sums="5968f907498fd8f2b66ed6ffd7cac6ea kernelconfig"
md5sums="b44152b7ca7199c3d6ab499a61f06fdd kernelconfig"
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.28.7
# Tue Mar 3 05:58:24 2009
# Thu Mar 19 12:44:45 2009
#
# CONFIG_64BIT is not set
CONFIG_X86_32=y
......@@ -1528,7 +1528,8 @@ CONFIG_PATA_WINBOND_VLB=m
CONFIG_PATA_PLATFORM=m
CONFIG_PATA_SCH=m
CONFIG_MD=y
CONFIG_BLK_DEV_MD=m
CONFIG_BLK_DEV_MD=y
# CONFIG_MD_AUTODETECT is not set
CONFIG_MD_LINEAR=m
CONFIG_MD_RAID0=m
CONFIG_MD_RAID1=m
......@@ -3435,7 +3436,6 @@ CONFIG_USB_HWA_HCD=m
#
# Enable Host or Gadget support to see Inventra options
#
# CONFIG_USB_GADGET_MUSB_HDRC is not set
#
# USB Device Class drivers
......@@ -3558,28 +3558,6 @@ CONFIG_USB_CXACRU=m
CONFIG_USB_UEAGLEATM=m
CONFIG_USB_XUSBATM=m
# CONFIG_USB_GADGET is not set
# CONFIG_USB_GADGET_AT91 is not set
# CONFIG_USB_GADGET_ATMEL_USBA is not set
# CONFIG_USB_GADGET_FSL_USB2 is not set
# CONFIG_USB_GADGET_LH7A40X is not set
# CONFIG_USB_GADGET_OMAP is not set
# CONFIG_USB_GADGET_PXA25X is not set
# CONFIG_USB_GADGET_PXA27X is not set
# CONFIG_USB_GADGET_S3C2410 is not set
# CONFIG_USB_GADGET_M66592 is not set
# CONFIG_USB_GADGET_AMD5536UDC is not set
# CONFIG_USB_GADGET_FSL_QE is not set
# CONFIG_USB_GADGET_NET2280 is not set
# CONFIG_USB_GADGET_GOKU is not set
# CONFIG_USB_GADGET_DUMMY_HCD is not set
# CONFIG_USB_ZERO is not set
# CONFIG_USB_ETH is not set
# CONFIG_USB_GADGETFS is not set
# CONFIG_USB_FILE_STORAGE is not set
# CONFIG_USB_G_SERIAL is not set
# CONFIG_USB_MIDI_GADGET is not set
# CONFIG_USB_G_PRINTER is not set
# CONFIG_USB_CDC_COMPOSITE is not set
CONFIG_UWB=m
CONFIG_UWB_HWA=m
CONFIG_UWB_WHCI=m
......
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xtables-addons
_kernflavor=grsec
_kernver=2.6.28.5
pkgver=1.9
_kernver=2.6.28.7
pkgver=1.12
pkgrel=0
pkgdesc="Xtables-addons is the successor to patch-o-matic(-ng)"
url="http://jengelh.medozas.de/projects/xtables/"
......@@ -11,8 +11,8 @@ depends="linux-grsec"
makedepends="linux-grsec-dev linux-grsec-sources iptables-dev"
install=
subpackages="$pkgname-doc $pkgname-grsec:mod"
source="http://dev.medozas.de/files/xtables/xtables-addons-$pkgver.tar.bz2
$pkgname-1.9-readlink.patch"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2
$pkgname-1.12-readlink.patch"
build() {
local kout="$srcdir"/grsec
......@@ -36,5 +36,5 @@ build() {
make DESTDIR="$pkgdir" install
}
md5sums="578176c969a70858bfc06d9ee3b5dbda xtables-addons-1.9.tar.bz2
eb9b3874ba74a291627898e537e2e8ab xtables-addons-1.9-readlink.patch"
md5sums="e1544d87bbae03a02874c6598daa111d xtables-addons-1.12.tar.bz2
22bb434696be0960a6c758de17420e18 xtables-addons-1.12-readlink.patch"
--- xtables-addons-1.9/extensions/ipset/GNUmakefile.in.orig 2009-02-19 07:46:31.000000000 +0000
+++ xtables-addons-1.9/extensions/ipset/GNUmakefile.in 2009-02-19 07:46:42.000000000 +0000
@@ -2,8 +2,8 @@
--- xtables-addons-1.12.orig/extensions/ipset/GNUmakefile.in 2009-03-19 14:38:02.000000000 +0000
+++ xtables-addons-1.12/extensions/ipset/GNUmakefile.in 2009-03-19 14:40:28.000000000 +0000
@@ -3,8 +3,8 @@
top_srcdir := @top_srcdir@
srcdir := @srcdir@
datarootdir := @datarootdir@
-abstop_srcdir := $(shell readlink -e ${top_srcdir})
-abssrcdir := $(shell readlink -e ${srcdir})
+abstop_srcdir := $(shell readlink -f ${top_srcdir})
......
# 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"
# 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"
# 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"
# 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"
# 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"
# 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"
# 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"
# 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"
# 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"
# 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"
#!/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
}
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=aumix
pkgver=2.8
pkgrel=0
pkgdesc="A color text mode sound mixer"
url="http://www.jpj.net/~trevor/aumix.html"
license="GPL"
depends="uclibc ncurses ncurses-terminfo"
makedepends="ncurses-dev"
source="http://jpj.net/~trevor/aumix/aumix-$pkgver.tar.bz2
aumix-2.8-mute.patch
aumix-2.8-nohome.patch
aumix-2.8-save_load.patch
aumix.initd
"
build() {
cd "$srcdir"/aumix-$pkgver
for i in ../*.patch; do
msg "Applying $i..."
patch -p1 < $i || return 1
done
./configure --prefix=/usr \
--mandir=/usr/share/man \
--without-gtk1 \
--without-gtk \
--disable-nls
make || return 1
make DESTDIR="$pkgdir" install || return 1
install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/aumix
}
md5sums="dc3fc7209752207c23e7c94ab886b340 aumix-2.8.tar.bz2
3611c0372870a0ad67630231fe576e32 aumix-2.8-mute.patch
6c8d691beb495257d8309e58c127acd2 aumix-2.8-nohome.patch
113377f0f69925467a5a5b633a78160c aumix-2.8-save_load.patch
affaa735ad9b65a540842994caba18fd aumix.initd"
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ccache
pkgver=2.4
pkgrel=0
pkgdesc="ccache is a compiler cache"
url="http://ccache.samba.org/"
license="GPL"
subpackages="$pkgname-doc"
depends="uclibc"
makedepends=""
source="http://samba.org/ftp/$pkgname/$pkgname-$pkgver.tar.gz"
build ()
{
cd "$srcdir"/$pkgname-$pkgver
./configure --prefix=/usr
make || return 1
install -Dm 755 ccache "$pkgdir"/usr/bin/ccache
install -Dm 644 ccache.1 "$pkgdir"/usr/share/man/man1/ccache.1
mkdir -p "$pkgdir"/usr/lib/ccache/bin
ln -sf /usr/bin/ccache "$pkgdir"/usr/lib/ccache/bin/cc
ln -sf /usr/bin/ccache "$pkgdir"/usr/lib/ccache/bin/gcc
ln -sf /usr/bin/ccache "$pkgdir"/usr/lib/ccache/bin/g++
ln -sf /usr/bin/ccache "$pkgdir"/usr/lib/ccache/bin/cpp
ln -sf /usr/bin/ccache "$pkgdir"/usr/lib/ccache/bin/c++
ln -sf /usr/bin/ccache "$pkgdir"/usr/lib/ccache/bin/${CHOST}-cc
ln -sf /usr/bin/ccache "$pkgdir"/usr/lib/ccache/bin/${CHOST}-gcc
ln -sf /usr/bin/ccache "$pkgdir"/usr/lib/ccache/bin/${CHOST}-g++
ln -sf /usr/bin/ccache "$pkgdir"/usr/lib/ccache/bin/${CHOST}-cpp
ln -sf /usr/bin/ccache "$pkgdir"/usr/lib/ccache/bin/${CHOST}-c++
}
md5sums="73c1ed1e767c1752dd0f548ec1e66ce7 ccache-2.4.tar.gz"
# 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"
# 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"
# /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=""
#!/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 $?
}
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=espeak
pkgver=1.40.02
pkgrel=0
pkgdesc="Speech synthesizer for English and other languages"
url="http://espeak.sourceforge.net/"
license="GPL-3"
subpackages="$pkgname-dev"
depends="uclibc uclibc++"
makedepends="uclibc++-dev"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver-source.zip
$pkgname-$pkgver-uclibc++.patch"
build() {
local s="$srcdir"/$pkgname-$pkgver-source
cd "$s"
for i in ../*.patch; do
msg "Applying $i..."
patch -p1 < $i || return 1
done
export CXX=g++-uc
cd src
make CXXFLAGS="${CXXFLAGS}" AUDIO=none all || return 1
msg "Fixing byte order of phoneme data files"
cd "$s"/platforms/big_endian
make
./espeak-phoneme-data "$s"/espeak-data
cp -f phondata phonindex phontab "$s"/espeak-data
cd "$s"/src
make DESTDIR="$pkgdir" AUDIO=none install || return 1
cd "$s"
install -d "$pkgdir"/usr/share/espeak-data
cp -r dictsource "$pkgdir"/usr/share/espeak-data
}