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

commit bac622b28ecd50d2f773b0bed37f200817d08152
Author: James Buren <[email protected]>
Date:   Wed Jun 6 22:02:15 2012 -0500

bind-9.9.0-2-x86_64
* convert to use systemd schema

diff --git a/source/network/bind/FrugalBuild b/source/network/bind/FrugalBuild
index f87028e..e05f235 100644
--- a/source/network/bind/FrugalBuild
+++ b/source/network/bind/FrugalBuild
@@ -4,7 +4,7 @@
pkgname=bind
pkgver=9.9.0
pkgextraver=
-pkgrel=1
+pkgrel=2
pkgdesc="DNS server and utilities"
url="http://www.isc.org/index.pl?/sw/bind/";
backup=(etc/named.conf etc/logrotate.d/named)
@@ -12,8 +12,11 @@ depends=('openssl>=1.0.0' 'libxml2>=2.7.8')
groups=('network')
archs=('i686' 'x86_64')
up2date="lynx -dump ftp://ftp.isc.org/isc/bind9/|grep '/9.*[^abc][0-9]$'|grep 
-v W |sed -n 's|.*/||;s/$pkgextraver//;$ p'"
-source=(ftp://ftp.isc.org/isc/bind9/$pkgver$pkgextraver/$pkgname-$pkgver$pkgextraver.tar.gz
 rc.bind bind)
-signatures=($source.asc '' '')
+source=(ftp://ftp.isc.org/isc/bind9/$pkgver$pkgextraver/$pkgname-$pkgver$pkgextraver.tar.gz
 rc.bind bind bind.service)
+signatures=($source.asc '' '' '')
+_F_sysvinit_units=(bind)
+_F_systemd_units=(bind=)
+Finclude systemd

build()
{
@@ -30,6 +33,8 @@ build()
/var/named/caching-example/localhost.zone
Ffile ../caching-example/named.ca /var/named/caching-example/named.ca
Ffile bind /etc/logrotate.d/bind
+       Ffile /lib/systemd/system/bind.service
+       Fgenscriptlet
}

# optimization OK
diff --git a/source/network/bind/bind.service b/source/network/bind/bind.service
new file mode 100644
index 0000000..bceda7f
--- /dev/null
+++ b/source/network/bind/bind.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Domain Name Server
+After=network.target
+
+[Service]
+ExecStart=/usr/sbin/named
+Type=forking
+
+[Install]
+WantedBy=multi-user.target
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to