~ubuntu-branches/ubuntu/raring/maradns/raring

« back to all changes in this revision

Viewing changes to update/1.2.12.01/maradns-1.2.11-rpm_spec.patch

  • Committer: Bazaar Package Importer
  • Author(s): Kai Hendry
  • Date: 2010-01-24 12:17:40 UTC
  • mfrom: (1.1.13 upstream) (10.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100124121740-a4e1fjobwaouz443
Tags: 1.4.02-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
--- maradns-1.2.11/build/maradns-1.2.11.spec    2006-07-17 22:50:44.000000000 -0500
2
 
+++ maradns-1.2.12.01/build/maradns-1.2.12.01.spec      2006-07-26 10:52:21.000000000 -0500
3
 
@@ -1,12 +1,12 @@
4
 
 Summary: An authoritative and recursive DNS server made with security in mind
5
 
 Name: maradns
6
 
-Version: 1.2.11
7
 
+Version: 1.2.12.01
8
 
 Release: 1
9
 
 License: BSD (Two-clause)
10
 
 Group: Networking/Daemons
11
 
-Source: http://www.maradns.org/download/1.2/1.2.11/maradns-1.2.11.tar.bz2
12
 
-Source1: maradns-1.2.11.tar.bz2.sha1.asc
13
 
-Source2: maradns-1.2.11.tar.bz2.rmd.asc
14
 
+Source: http://www.maradns.org/download/1.2/1.2.12.01/maradns-1.2.12.01.tar.bz2
15
 
+Source1: maradns-1.2.12.01.tar.bz2.sha1.asc
16
 
+Source2: maradns-1.2.12.01.tar.bz2.rmd.asc
17
 
 Patch0: maradns-1.1.59-rpm.patch
18
 
 BuildRoot: /var/tmp/%{name}-buildroot
19
 
 
20
 
@@ -49,7 +49,7 @@
21
 
 
22
 
 %files
23
 
 %defattr(-,root,root)
24
 
-%doc /usr/doc/maradns-1.2.11/*
25
 
+%doc /usr/doc/maradns-1.2.12.01/*
26
 
 
27
 
 /usr/sbin/maradns
28
 
 /usr/sbin/zoneserver
29
 
@@ -75,6 +75,16 @@
30
 
 %config /etc/rc.d/init.d/maradns
31
 
 %config /etc/rc.d/init.d/maradns.zoneserver
32
 
 
33
 
+%post
34
 
+CHKCONFIGPARM="--add maradns"
35
 
+if [ -x "/sbin/chkconfig" ]; then
36
 
+       "/sbin/chkconfig" $CHKCONFIGPARM
37
 
+elif [ -x "/usr/sbin/chkconfig" ]; then
38
 
+       "/usr/sbin/chkconfig" $CHKCONFIGPARM
39
 
+else
40
 
+       echo "No chkconfig found. Chkconfig skipped."
41
 
+fi
42
 
+
43
 
 %preun
44
 
 # End all instances of MaraDNS
45
 
 echo Sending all MaraDNS processes the TERM signal
46
 
@@ -87,7 +97,22 @@
47
 
   cut -f1 -d: | xargs kill -9 > /dev/null 2>&1
48
 
 echo MaraDNS should have been stopped
49
 
 
50
 
+CHKCONFIGPARM="--del maradns"
51
 
+if [ -x "/sbin/chkconfig" ]; then
52
 
+       "/sbin/chkconfig" $CHKCONFIGPARM
53
 
+elif [ -x "/usr/sbin/chkconfig" ]; then
54
 
+       "/usr/sbin/chkconfig" $CHKCONFIGPARM
55
 
+else
56
 
+       echo "No chkconfig found. Chkconfig skipped."
57
 
+fi
58
 
+
59
 
 %changelog
60
 
+* Tue Jul 25 2006 Sam Trenholme <sam+i55e6bt@chaosring.org>
61
 
+- MaraDNS rpm package updated for version 1.2.12.01
62
 
+
63
 
+* Sun Jul 16 2006 Vlatko Kosturjak <kost@linux.hr>
64
 
+- Added support for chkconfig
65
 
+
66
 
 * Fri Jun 23 2006 Sam Trenholme <sam+i55e6bt@chaosring.org>
67
 
 - MaraDNS rpm package updated for version 1.2.11
68