diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-15 06:47:44 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-15 06:47:44 +0000 |
commit | b361eb86e5d6928df346b8ca4bcfac03e9b3cdae (patch) | |
tree | 7c7d720f2216741e8d457429177cfd6424982d52 /extra | |
parent | e161341358ccb5db48e3d6e0ad66c86efede2638 (diff) | |
parent | 12058bc904a1ae0793e0c6ebb173846bc001f6e3 (diff) | |
download | aports-b361eb86e5d6928df346b8ca4bcfac03e9b3cdae.tar.bz2 aports-b361eb86e5d6928df346b8ca4bcfac03e9b3cdae.tar.xz |
Merge commit 'mmason/master'
Diffstat (limited to 'extra')
-rw-r--r-- | extra/hylafax/APKBUILD | 82 | ||||
-rw-r--r-- | extra/hylafax/hylafax.post-install | 5 | ||||
-rw-r--r-- | extra/iaxmodem/iaxmodem.confd | 7 | ||||
-rw-r--r-- | extra/iaxmodem/iaxmodem.initd | 43 |
4 files changed, 137 insertions, 0 deletions
diff --git a/extra/hylafax/APKBUILD b/extra/hylafax/APKBUILD new file mode 100644 index 0000000000..42450d4678 --- /dev/null +++ b/extra/hylafax/APKBUILD @@ -0,0 +1,82 @@ +# Contributor: Cameron Banta <cbanta@gmail.com> +# Maintainer: Cameron Banta <cbanta@gmail.com> +pkgname=hylafax +pkgver=4.4.4 +pkgrel=0 +pkgdesc="Sends and receives faxes" +url="http://www.hylafax.org/" +license="custom" +#depends on gcc for libgcc_s.so, it's scripts are hardcoded to bash +depends="ghostscript bash" +makedepends="zlib-dev tiff-dev uclibc++-dev" +install="hylafax.post-install" +subpackages="$pkgname-doc" +source="ftp://ftp.hylafax.org/source/$pkgname-$pkgver.tar.gz + $install + " + +build() { + cd "$srcdir/$pkgname-$pkgver" + + # Patch configure c++ problem + sed -i -e 's:"iostream.h":<iostream>\n using namespace std;:g' \ + configure + + # the configure script does not handle ccache or distcc + export CC=gcc + ./configure --nointeractive --disable-pam \ + --with-CXX=/usr/bin/g++-uc \ + --with-DIR_BIN=/usr/bin \ + --with-DIR_SBIN=/usr/sbin \ + --with-DIR_LIB=/usr/lib \ + --with-DIR_LIBEXEC=/usr/sbin \ + --with-DIR_LIBDATA=/var/spool/"$pkgname"/lib \ + --with-DIR_LOCKS=/var/lock \ + --with-DIR_MAN=/usr/share/man \ + --with-DIR_SPOOL=/var/spool/"$pkgname" \ + --with-DIR_HTML=/usr/share/doc/"$pkgname"/html \ + --with-PATH_IMPRIP="" \ + --with-SYSVINIT=no \ + --with-REGEX=yes \ + --with-LIBTIFF="-ltiff -lz" \ + --with-DSO=auto \ + --with-PATH_EGETTY=/bin/false \ + --with-PATH_VGETTY=/bin/false \ + || return 1 + make -j1 || return 1 + + # this makefile has issues installing, it doesn't use the standard + # install - but the following seems to work + mkdir -p "${pkgdir}"/usr/bin "${pkgdir}"/usr/sbin + mkdir -p "${pkgdir}"/usr/lib/"$pkgname" "${pkgdir}"/usr/share/man + mkdir -p "${pkgdir}"/var/spool/"$pkgname" + mkdir -p "${pkgdir}"/var/spool/"$pkgname"/lib + touch "${pkgdir}"/var/spool/"$pkgname"/lib/pagesizes + chown uucp:uucp "${pkgdir}"/var/spool/"$pkgname" + chmod 0600 "${pkgdir}"/var/spool/"$pkgname" + + make \ + BIN="${pkgdir}/usr/bin" \ + SBIN="${pkgdir}/usr/sbin" \ + LIBDIR="${pkgdir}/usr/lib" \ + LIB="${pkgdir}/usr/lib" \ + LIBEXEC="${pkgdir}/usr/sbin" \ + LIBDATA="${pkgdir}/var/spool/$pkgname"/lib \ + MAN="${pkgdir}/usr/share/man" \ + SPOOL="${pkgdir}/var/spool/$pkgname" \ + HTMLDIR="${pkgdir}/usr/share/doc/$pkgname/html" \ + install || return 1 + + + install -m644 -D "$srcdir/$pkgname-$pkgver/COPYRIGHT" \ + "$pkgdir"/usr/share/licenses/$pkgname/COPYRIGHT + install -m644 -D "$srcdir/$pkgname-$pkgver/README" \ + "$pkgdir"/usr/share/doc/$pkgname/README + + + # init.d script is created by faxsetup + # - which the user runs after install +} + +md5sums="4beb3d438ca6c4f00f1d94f9643e6668 hylafax-4.4.4.tar.gz +a3553e6fc4de30e80759abe5c663c85b hylafax.post-install" diff --git a/extra/hylafax/hylafax.post-install b/extra/hylafax/hylafax.post-install new file mode 100644 index 0000000000..839f96f543 --- /dev/null +++ b/extra/hylafax/hylafax.post-install @@ -0,0 +1,5 @@ +#!/bin/sh + +echo " *" +echo " * Please run faxsetup to configure hylafax" +echo " *" diff --git a/extra/iaxmodem/iaxmodem.confd b/extra/iaxmodem/iaxmodem.confd new file mode 100644 index 0000000000..082a920e0b --- /dev/null +++ b/extra/iaxmodem/iaxmodem.confd @@ -0,0 +1,7 @@ +# Configfile for /etc/init.d/iaxmodem + +# Set the priority of the iaxmodem process +# Value: (highest) -20..19 (lowest) +# +#IAXMODEM_NICE="-5" + diff --git a/extra/iaxmodem/iaxmodem.initd b/extra/iaxmodem/iaxmodem.initd new file mode 100644 index 0000000000..d6f2c947ac --- /dev/null +++ b/extra/iaxmodem/iaxmodem.initd @@ -0,0 +1,43 @@ +#!/sbin/runscript +# Copyright 1999-2008 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/iaxmodem/files/iaxmodem.initd,v 1.1 2008/10/14 23:53:39 sbriesen Exp $ + +description="IAXmodem" +description_reload="Reread configuration file and make the appropriate changes" +extra_started_commands="reload" +command="/usr/sbin/iaxmodem" +pidfile="/var/run/iaxmodem.pid" +name="iaxmodem" + +depend() { + use asterisk + need net +} + +start() { + ebegin "Starting ${description}" + start-stop-daemon --start --quiet --pidfile "${pidfile}" \ + --env TMPDIR="/tmp" --nice ${IAXMODEM_NICE:-0} --exec "${command}" + eend ${?} +} + +stop() { + local childs="" + ebegin "Stopping ${description}" + # start-stop-daemon doesn't kill childs reliable, so we + # use a combination of pgrep + start-stop-daemon + kill + [ -s "${pidfile}" ] && childs=$(pgrep -P $(cat "${pidfile}")) + start-stop-daemon --stop --quiet --pidfile "${pidfile}" --retry TERM/10/KILL/5 + if eend ${?}; then + # if there're still childs running, kill them! + [ -n "${childs}" ] && kill -KILL ${childs} 2>/dev/null + return 0 + fi +} + +reload() { + ebegin "Reloading ${description} configuration" + start-stop-daemon --stop --signal HUP --pidfile "${pidfile}" + eend ${?} +} |