[Frugalware-git] openjava: tinyproxy-1.8.3-2-x86_64 * convert to systemd schema
James Buren
ryuo at frugalware.org
Sun Jun 17 13:38:55 CEST 2012
Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=openjava.git;a=commitdiff;h=9f5365dd22b9614a5a51135e72ace5e7086e4d6d
commit 9f5365dd22b9614a5a51135e72ace5e7086e4d6d
Author: James Buren <ryuo at frugalware.org>
Date: Tue Jun 12 22:01:02 2012 -0500
tinyproxy-1.8.3-2-x86_64
* convert to systemd schema
diff --git a/source/network-extra/tinyproxy/FrugalBuild b/source/network-extra/tinyproxy/FrugalBuild
index 12814cd..0073eeb 100644
--- a/source/network-extra/tinyproxy/FrugalBuild
+++ b/source/network-extra/tinyproxy/FrugalBuild
@@ -3,7 +3,7 @@
pkgname=tinyproxy
pkgver=1.8.3
-pkgrel=1
+pkgrel=2
pkgdesc="Tinyproxy is a light-weight HTTP proxy daemon for POSIX operating systems"
url="https://www.banu.com/tinyproxy/"
depends=('glibc')
@@ -11,24 +11,33 @@ makedepends=('asciidoc')
groups=('network-extra')
archs=('i686' 'x86_64' 'arm')
backup=(etc/tinyproxy.conf)
-up2date="elinks -dump -source $url/download/ | Flasttar"
+up2date="Flasttar $url"
source=(https://www.banu.com/pub/$pkgname/1.8/$pkgname-$pkgver.tar.bz2 \
- rc.tinyproxy disabledoc.diff)
+ rc.$pkgname $pkgname.service disabledoc.diff)
sha1sums=('2538fbd190d3dc357a2e7c2a07ea0fbefb768a13' \
'fd279acda3e838c3d45fce6746a6e45301bfe701' \
+ 'c74942fe52771830fd5227170e33548fc9d76996' \
'48366b2f13242438ea4cf65ae02ed716887ec942')
+_F_sysvinit_units=($pkgname)
+_F_systemd_units=($pkgname=)
+Finclude systemd
+
build() {
- Fbuild --enable-transparent --enable-reverse
+ Fpatchall
+ Fautoreconf
+ Fmake --enable-transparent --enable-reverse
+ Fmakeinstall
Fmkdir /var/log/tinyproxy
- chmod 775 $Fdestdir/var/log/tinyproxy
+ Fdirschown /var/log/tinyproxy nobody nobody
Frcd2
#systemd
Fmkdir /etc/tmpfiles.d
cat > $Fdestdir/etc/tmpfiles.d/tinyproxy.conf << EOF
-d $Flocalstatedir/run/tinyproxy/ 0755 root root -
+d $Flocalstatedir/run/tinyproxy/ 0755 nobody nobody -
EOF
-
+ Ffile /lib/systemd/system/$pkgname.service
+ Fgenscriptlet
}
# optimization OK
diff --git a/source/network-extra/tinyproxy/tinyproxy.service b/source/network-extra/tinyproxy/tinyproxy.service
new file mode 100644
index 0000000..177fce4
--- /dev/null
+++ b/source/network-extra/tinyproxy/tinyproxy.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=tinyproxy
+After=network.target
+
+[Service]
+ExecStart=/usr/sbin/tinyproxy
+PIDFile=/var/run/tinyproxy/tinyproxy.pid
+Type=forking
+
+[Install]
+WantedBy=multi-user.target
More information about the Frugalware-git
mailing list