diff options
| author | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-24 08:01:31 +0000 |
|---|---|---|
| committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-24 08:01:31 +0000 |
| commit | b70981b68efcce5256eb11c6cd26ae123b10b6ea (patch) | |
| tree | a38be6efae5e2ba15c2e839504632f9b7bfd5f91 /extra/tinyproxy | |
| parent | 2b4df81538b8398442d5296650905c70341dd8d3 (diff) | |
| download | aports-b70981b68efcce5256eb11c6cd26ae123b10b6ea.tar.bz2 aports-b70981b68efcce5256eb11c6cd26ae123b10b6ea.tar.xz | |
moved extra/* to main/
and fixed misc build issues
Diffstat (limited to 'extra/tinyproxy')
| -rw-r--r-- | extra/tinyproxy/APKBUILD | 40 | ||||
| -rw-r--r-- | extra/tinyproxy/tinyproxy.initd | 45 | ||||
| -rw-r--r-- | extra/tinyproxy/tinyproxy.install | 13 |
3 files changed, 0 insertions, 98 deletions
diff --git a/extra/tinyproxy/APKBUILD b/extra/tinyproxy/APKBUILD deleted file mode 100644 index 046daa8307..0000000000 --- a/extra/tinyproxy/APKBUILD +++ /dev/null @@ -1,40 +0,0 @@ -# Contributor: Michael Mason <ms13sp@gmail.com> -# Maintainer: Michael Mason <ms13sp@gmail.com> -pkgname=tinyproxy -pkgver=1.6.3 -pkgrel=0 -pkgdesc="Lightweight HTTP proxy" -url="https://www.banu.com/tinyproxy/" -license="GPL" -depends="uclibc" -makedepends="" -install="tinyproxy.install" -subpackages="$pkgname-doc" -source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz - tinyproxy.initd - $install - " - -build() { - cd "$srcdir/$pkgname-$pkgver" - - # set default user to tinyproxy:tinyproxy and correct pidfile - sed -i -e 's:^User.*:User tinyproxy:' \ - -e 's:^Group.*:Group tinyproxy:' \ - -e 's:^PidFile.*:PidFile "/var/run/tinyproxy/tinyproxy.pid":' \ - doc/tinyproxy.conf - - ./configure --prefix=/usr \ - --sysconfdir=/etc \ - --mandir=/usr/share/man \ - --infodir=/usr/share/info - - make || return 1 - make DESTDIR="$pkgdir" install - mkdir -p "$pkgdir"/var/run/tinyproxy - install -Dm755 "$srcdir"/tinyproxy.initd "$pkgdir"/etc/init.d/tinyproxy -} - -md5sums="bd14d029b12621bcfd7ee71b2f4893da tinyproxy-1.6.3.tar.gz -554da6fc363fbe251f081b342541bef4 tinyproxy.initd -2f5d9f4a8b7f4c7f1f5b9d59d99839e4 tinyproxy.install" diff --git a/extra/tinyproxy/tinyproxy.initd b/extra/tinyproxy/tinyproxy.initd deleted file mode 100644 index bee5d041fb..0000000000 --- a/extra/tinyproxy/tinyproxy.initd +++ /dev/null @@ -1,45 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/tinyproxy/files/tinyproxy.initd,v 1.1 2008/02/16 07:11:25 mrness Exp $ - -CONFFILE="/etc/tinyproxy/${SVCNAME}.conf" - -depend() { - use logger dns - need net -} - -checkconfig() { - if [ ! -f "${CONFFILE}" ]; then - eerror "Configuration file ${CONFFILE} not found!" - return 1 - fi - - PIDFILE=$(sed -n -e 's/^[[:space:]]*PidFile[[:space:]]\+"\(.*\)"[[:space:]]*$/\1/p' "${CONFFILE}") - return 0 -} - -start() { - checkconfig || return 1 - - ebegin "Starting tinyproxy" - if [ -n "${PIDFILE}" ]; then - start-stop-daemon --start --pidfile "${PIDFILE}" --startas /usr/sbin/tinyproxy -- -c "${CONFFILE}" - else - start-stop-daemon --start --exec /usr/sbin/tinyproxy -- -c "${CONFFILE}" - fi - eend $? -} - -stop() { - checkconfig || return 1 - - ebegin "Stopping tinyproxy" - if [ -n "${PIDFILE}" ]; then - start-stop-daemon --stop --pidfile "${PIDFILE}" - else - start-stop-daemon --stop --exec /usr/sbin/tinyproxy - fi - eend $? -} diff --git a/extra/tinyproxy/tinyproxy.install b/extra/tinyproxy/tinyproxy.install deleted file mode 100644 index 5fa366737b..0000000000 --- a/extra/tinyproxy/tinyproxy.install +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh - -case "$1" in - pre_install) - adduser -h /dev/null -s /bin/false -D tinyproxy 2>/dev/null - ;; - post_install) - chown tinyproxy:tinyproxy /var/run/tinyproxy - ;; -esac - -# return with success even if user already exist -exit 0 |
