From 1b99470a0c85186f768a328fcc11a7cfcc85be51 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 14 Sep 2012 00:04:07 +0000 Subject: Fri Sep 14 00:04:06 UTC 2012 --- community/inn/PKGBUILD | 12 ++++++++---- community/inn/innd.service | 16 ++++++++++++++++ 2 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 community/inn/innd.service (limited to 'community/inn') diff --git a/community/inn/PKGBUILD b/community/inn/PKGBUILD index 5b7a43d0c..43801f6af 100644 --- a/community/inn/PKGBUILD +++ b/community/inn/PKGBUILD @@ -1,11 +1,11 @@ -# $Id: PKGBUILD 71743 2012-06-02 10:29:04Z bluewind $ +# $Id: PKGBUILD 76159 2012-09-12 10:42:46Z spupykin $ # Maintainer: Sergej Pupykin # Maintainer: Edward Tjörnhammar # Contributor: Edward Tjörnhammar pkgname=inn -pkgver=2.5.2 -pkgrel=10 +pkgver=2.5.3 +pkgrel=1 pkgdesc="Complete open source Usenet system. De facto standard for handling news routing, news spool and serving the spool to customers." url="http://www.isc.org/software/inn/" arch=('i686' 'x86_64') @@ -51,12 +51,14 @@ source=(http://ftp.isc.org/isc/inn/inn-$pkgver.tar.gz nnrpd.rc innd.conf nnrpd.conf + innd.service site.make.patch) -md5sums=('a6e577dceb90d07501b96149508b974b' +md5sums=('353fe95232828ddbc80debff86c240bc' 'a243d9498568f1beee20da5684b5fbfc' 'a0b1ff8501ac8a31ce81a2f9c9b4bac9' 'fbf1d2c5b3c5a08ae3e515c71c2e2e4a' 'bb4bbe86ae52fbbf08b0f6f370dea052' + '9da925a486fcf0cd67fdf462cbb9c0b4' '960c800026ed6e03901cf0bafdfd53d8') build() { @@ -129,4 +131,6 @@ package() { install -D -m0644 $srcdir/inn-$pkgver/LICENSE $pkgdir/usr/share/licenses/inn/LICENSE chown root:root $pkgdir/usr/bin/innbind chmod 05555 $pkgdir/usr/bin/innbind + + install -Dm0644 $srcdir/innd.service $pkgdir/usr/lib/systemd/system/innd.service } diff --git a/community/inn/innd.service b/community/inn/innd.service new file mode 100644 index 000000000..724baf90c --- /dev/null +++ b/community/inn/innd.service @@ -0,0 +1,16 @@ +[Unit] +Description=Inetnet News Daemon +After=syslog.target network.target +ConditionPathExists=/etc/inn/inn.conf + +[Service] +User=news +PermissionsStartOnly=true +PIDFile=/run/inn/innd.pid +Type=forking +ExecStart=/usr/bin/rc.news +ExecStop=/bin/su -m news -c '/usr/bin/rc.news stop' +KillMode=control-group + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3-54-g00ecf