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

commit d81a2a40023d3633cd45f9bda6e050e85b0e85c7
Author: James Buren <[email protected]>
Date:   Thu Jun 7 00:10:17 2012 -0500

pure-ftpd-1.0.36-2-x86_64
* convert to use systemd schema

diff --git a/source/network-extra/pure-ftpd/FrugalBuild 
b/source/network-extra/pure-ftpd/FrugalBuild
index c52971e..55e9406 100644
--- a/source/network-extra/pure-ftpd/FrugalBuild
+++ b/source/network-extra/pure-ftpd/FrugalBuild
@@ -3,7 +3,7 @@

pkgname=pure-ftpd
pkgver=1.0.36
-pkgrel=1
+pkgrel=2
pkgdesc="A free, secure, production-quality and standard-conformant FTP server"
url="http://www.pureftpd.org/";
depends=('libcap>=2.19' 'libmysqlclient>=5.5.10' 'openssl>=1.0.0')
@@ -13,12 +13,17 @@ groups=('network-extra')
archs=('i686' 'x86_64')
up2date="Flasttar http://download.pureftpd.org/pub/pure-ftpd/releases/";
source=(ftp://ftp.pureftpd.org/pub/$pkgname/releases/$pkgname-$pkgver.tar.bz2 \
-       pure-config.pl pure-ftpd.conf rc.$pkgname rc.$pkgname-hu.po)
+       pure-config.pl pure-ftpd.conf rc.$pkgname rc.$pkgname-hu.po 
$pkgname.service)
sha1sums=('54d7e25ad4dd3d0ae29032705401e56467b122d5' \
'274bf6399afa4fbb6cb8593181c103e3ff7f1070' \
'7c6b89a0dcefdd96e2da943ec4b21a9d952d86eb' \
'2a0b5d5151251deb129c061a78fa5eca5525e99e' \
-          '1a12dbfaa9d2d5914b7a1db040d5d6ced71cd659')
+          '1a12dbfaa9d2d5914b7a1db040d5d6ced71cd659' \
+          'bb1be941136b8e0152b43d7dbe457b5e65856a7c')
+
+_F_sysvinit_units=($pkgname)
+_F_systemd_units=($pkgname=)
+Finclude systemd

build()
{
@@ -28,6 +33,8 @@ build()
Frcd2
Ffile /etc/pure-ftpd.conf
Fexe /usr/sbin/pure-config.pl
+       Ffile /lib/systemd/system/$pkgname.service
+       Fgenscriptlet
}

# optimization OK
diff --git a/source/network-extra/pure-ftpd/pure-ftpd.service 
b/source/network-extra/pure-ftpd/pure-ftpd.service
new file mode 100644
index 0000000..c1b3ae5
--- /dev/null
+++ b/source/network-extra/pure-ftpd/pure-ftpd.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Pure FTP Server
+After=network.target
+
+[Service]
+ExecStart=/usr/sbin/pure-config.pl /etc/pure-ftpd.conf
+PIDFile=/var/run/pure-ftpd.pid
+Type=forking
+
+[Install]
+WantedBy=multi-user.target
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to