Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=xfcetesting.git;a=commitdiff;h=e1d7c7087949216baa9b94323de28c944c5226e6

commit e1d7c7087949216baa9b94323de28c944c5226e6
Author: Miklos Vajna <vmik...@frugalware.org>
Date:   Fri Mar 11 12:32:18 2011 +0100

stunnel-4.35-1-i686

- version bump
- add systemd service file

diff --git a/source/network-extra/stunnel/FrugalBuild 
b/source/network-extra/stunnel/FrugalBuild
index ea460f4..65f08f3 100644
--- a/source/network-extra/stunnel/FrugalBuild
+++ b/source/network-extra/stunnel/FrugalBuild
@@ -2,7 +2,7 @@
# Maintainer: Miklos Vajna <vmik...@frugalware.org>

pkgname=stunnel
-pkgver=4.34
+pkgver=4.35
pkgrel=1
pkgdesc="Universal SSL Wrapper"
url="http://www.stunnel.org/";
@@ -10,10 +10,10 @@ depends=('zlib' 'openssl>=1.0.0' 'tcp_wrappers')
rodepends=('perl')
groups=('network-extra')
archs=('i686' 'x86_64')
-up2date="lynx -dump http://www.stunnel.org/download/source.html|grep -m1 
.tar.gz$|Flasttar"
-source=(http://www.stunnel.org/download/stunnel/src/stunnel-$pkgver.tar.gz \
-       rc.stunnel README.Frugalware)
-signatures=($source.asc '' '')
+up2date="lynx -dump http://www.stunnel.org/?page=versions|grep -m1 'Version 
'|sed 's/.*Version \(.*\) released.*/\1/'"
+source=(http://mirror.bit.nl/stunnel/stunnel-4.35.tar.gz \
+       rc.stunnel README.Frugalware stunnel.service)
+signatures=($source.asc '' '' '')

build()
{
@@ -27,6 +27,8 @@ build()
Fmkdir /var/lib/stunnel
chown 99:99 $Fdestdir/var/lib/stunnel
Frcd2
+       # TODO submit this upstream after Frugalwarae-1.5
+       Ffile /lib/systemd/system/stunnel.service
}

# optimization OK
diff --git a/source/network-extra/stunnel/stunnel.install 
b/source/network-extra/stunnel/stunnel.install
new file mode 100644
index 0000000..8d3398b
--- /dev/null
+++ b/source/network-extra/stunnel/stunnel.install
@@ -0,0 +1,24 @@
+post_install()
+{
+       systemctl daemon-reload >/dev/null 2>&1
+}
+
+post_upgrade()
+{
+       systemctl daemon-reload >/dev/null 2>&1
+}
+
+pre_remove()
+{
+       systemctl --no-reload disable stunnel.service >/dev/null 2>&1
+       systemctl stop stunnel.service >/dev/null 2>&1
+}
+
+post_remove()
+{
+       systemctl daemon-reload >/dev/null 2>&1
+}
+
+op=$1
+shift
+$op $*
diff --git a/source/network-extra/stunnel/stunnel.service 
b/source/network-extra/stunnel/stunnel.service
new file mode 100644
index 0000000..7c4ca2d
--- /dev/null
+++ b/source/network-extra/stunnel/stunnel.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=SSL tunnel for network daemons
+After=syslog.target
+
+[Service]
+ExecStart=/usr/bin/stunnel
+Type=forking
+
+[Install]
+WantedBy=multi-user.target
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to