Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=ebaa7a29908a8e6f64f7b8392405f1394ddbb073
commit ebaa7a29908a8e6f64f7b8392405f1394ddbb073 Author: James Buren <[email protected]> Date: Thu Jun 7 00:40:44 2012 -0500 proftpd-1.3.4-2-x86_64 * convert to use systemd schema diff --git a/source/network-extra/proftpd/FrugalBuild b/source/network-extra/proftpd/FrugalBuild index 1c37d62..782b4dc 100644 --- a/source/network-extra/proftpd/FrugalBuild +++ b/source/network-extra/proftpd/FrugalBuild @@ -9,7 +9,7 @@ USE_POSTGRES=${USE_POSTGRES:-"n"} pkgname=proftpd pkgver=1.3.4 pkgextraver=a -pkgrel=1 +pkgrel=2 pkgdesc="Highly configurable GPL-licensed FTP server software" url="http://www.proftpd.org/" groups=('network-extra') @@ -19,8 +19,11 @@ backup=(etc/{proftpd.conf,ftpusers}) _F_archive_grepv="rc[0-9]" up2date="Flasttar $url" source=(ftp://ftp.proftpd.org/distrib/source/$pkgname-$pkgver$pkgextraver.tar.bz2 \ - rc.proftpd proftpd.conf ftpusers) -signatures=($source.asc '' '' '') + rc.$pkgname $pkgname.conf $pkgname.service ftpusers) +signatures=($source.asc '' '' '' '') +_F_sysvinit_units=($pkgname) +_F_systemd_units=($pkgname=) +Finclude systemd if Fuse LDAP; then depends=("${depends[@]}" 'libldap') @@ -73,6 +76,8 @@ build() cat > $Fdestdir/etc/tmpfiles.d/proftpd.conf << EOF d $Flocalstatedir/run 0755 root root - EOF + Ffile /lib/systemd/system/$pkgname.service + Fgenscriptlet } # optimization OK diff --git a/source/network-extra/proftpd/proftpd.service b/source/network-extra/proftpd/proftpd.service new file mode 100644 index 0000000..8d211c8 --- /dev/null +++ b/source/network-extra/proftpd/proftpd.service @@ -0,0 +1,11 @@ +[Unit] +Description=ProFTPd Server +After=network.target + +[Service] +ExecStart=/usr/sbin/proftpd +PIDFile=/var/run/proftpd.pid +Type=forking + +[Install] +WantedBy=multi-user.target _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
