comparison syslog2iptables.spec.in @ 12:c2a2e35a85ac

final documentation, rpm builds properly
author carl
date Sat, 17 Dec 2005 16:17:09 -0800
parents a9b52f657f08
children 91b26521effc
comparison
equal deleted inserted replaced
11:a9b52f657f08 12:c2a2e35a85ac
50 localstatedir=$RPM_BUILD_ROOT%{localstatedir} \ 50 localstatedir=$RPM_BUILD_ROOT%{localstatedir} \
51 datadir=$RPM_BUILD_ROOT%{_datadir} \ 51 datadir=$RPM_BUILD_ROOT%{_datadir} \
52 includedir=$RPM_BUILD_ROOT%{_includedir} \ 52 includedir=$RPM_BUILD_ROOT%{_includedir} \
53 sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} install 53 sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} install
54 mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d 54 mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
55 mkdir -p $RPM_BUILD_ROOT%{_datadir}/doc/@PACKAGE@-@VERSION@
55 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/syslog2iptables $RPM_BUILD_ROOT/etc/rc.d/init.d 56 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/syslog2iptables $RPM_BUILD_ROOT/etc/rc.d/init.d
57 mv AUTHORS COPYING ChangeLog NEWS README $RPM_BUILD_ROOT%{_datadir}/doc/@PACKAGE@-@VERSION@
56 58
57 59
58 %clean 60 %clean
59 rm -rf $RPM_BUILD_ROOT 61 rm -rf $RPM_BUILD_ROOT
60 62
62 %pre 64 %pre
63 65
64 66
65 %post 67 %post
66 /sbin/chkconfig --add @PACKAGE@ 68 /sbin/chkconfig --add @PACKAGE@
67 /sbin/chkconfig @PACKAGE@ on
68 /sbin/service @PACKAGE@ start || :
69 69
70 70
71 %preun 71 %preun
72 /sbin/service @PACKAGE@ stop || : 72 /sbin/service @PACKAGE@ stop || :
73 /sbin/chkconfig --del @PACKAGE@ 73 /sbin/chkconfig --del @PACKAGE@
75 75
76 %postun 76 %postun
77 77
78 78
79 %files 79 %files
80 %doc AUTHORS COPYING ChangeLog NEWS README
81 %defattr(-,root,root) 80 %defattr(-,root,root)
82 %{_sbindir}/* 81 %{_sbindir}/*
83 %{_mandir}/* 82 %doc %{_mandir}/*
83 %docdir %{_datadir}/doc/@PACKAGE@-@VERSION@
84 %{_datadir}/doc/@PACKAGE@-@VERSION@
84 %config(noreplace) %{_sysconfdir}/@PACKAGE@.conf 85 %config(noreplace) %{_sysconfdir}/@PACKAGE@.conf
85 /etc/rc.d/init.d/@PACKAGE@ 86 /etc/rc.d/init.d/@PACKAGE@
86 87
88 # %doc AUTHORS COPYING ChangeLog NEWS README
87 89
88 %changelog 90 %changelog
89 * Thu Dec 08 2005 Carl Byington 1.0 91 * Thu Dec 08 2005 Carl Byington 1.0
90 - initial revision based on dnsbl spec file 92 - initial revision based on dnsbl spec file
91 - and http://www.fedora.us/docs/rpm-packaging-guidelines.html 93 - and http://www.fedora.us/docs/rpm-packaging-guidelines.html