Author: hunter Date: Sun Feb 27 13:36:54 2005 GMT Module: SPECS Tag: HEAD ---- Log message: -adapterized -use init script -pre/post start/stop
---- Files affected: SPECS: smtp-gated.spec (1.1 -> 1.2) ---- Diffs: ================================================================ Index: SPECS/smtp-gated.spec diff -u SPECS/smtp-gated.spec:1.1 SPECS/smtp-gated.spec:1.2 --- SPECS/smtp-gated.spec:1.1 Sun Feb 27 14:11:27 2005 +++ SPECS/smtp-gated.spec Sun Feb 27 14:36:47 2005 @@ -8,8 +8,7 @@ Group: Applications/Networking Source0: http://smtp-proxy.klolik.org/%{name}-%{version}.tar.gz # Source0-md5: ebac2d141ba2ba953fa43211c7905ebc -#Source1: %{name}.inetd -#Prereq: rc-inetd >= 0.8.1 +Source1: %{name}.init URL: http://smtp-proxy.klolik.org BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) Conflicts: clamsmtp @@ -47,35 +46,40 @@ %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man{5,8},/etc/sysconfig/rc-inetd,%{_examplesdir}/%{name}} +install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man{5,8},/etc/{rc.d/init.d/,sysconfig},%{_examplesdir}/%{name}} install src/smtp-gated $RPM_BUILD_ROOT%{_sbindir} install lib/manual.8 $RPM_BUILD_ROOT%{_mandir}/man8/%{name}.8 install lib/manual.conf.5 $RPM_BUILD_ROOT%{_mandir}/man5/%{name}.5 -install lib/* $RPM_BUILD_ROOT%{_examplesdir}/%{name} +install lib/{fixed.conf,mksd.default,redhat.init,debian.init,local.conf,mksd.init} $RPM_BUILD_ROOT%{_examplesdir}/%{name} -#install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/smtpproxy +install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/smtp-gated + +src/%{name} -t > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf +touch $RPM_BUILD_ROOT/etc/sysconfig/%{name} %clean rm -rf $RPM_BUILD_ROOT %post -if [ -f /var/lock/subsys/rc-inetd ]; then - /etc/rc.d/init.d/rc-inetd reload 1>&2 +if [ -f /var/lock/subsys/%{name} ]; then + /etc/rc.d/init.d/%{smtp-gated} reload 1>&2 else - echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2 + echo "Type \"/etc/rc.d/init.d/%{name} start\" to start smtp-gated server" 1>&2 fi -%postun -if [ "$1" = "0" -a -f /var/lock/subsys/rc-inetd ]; then - /etc/rc.d/init.d/rc-inetd reload +%preun +if [ "$1" = "0" -a -f /var/lock/subsys/%{name} ]; then + /etc/rc.d/init.d/%{name} stop fi %files %defattr(644,root,root,755) -%doc README -#%attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/%{name} +%doc README Changelog +%attr(640,root,root) %config %verify(not md5 mtime size) /etc/sysconfig/%{name} +%attr(640,root,root) %config %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf +/etc/rc.d/init.d/%{name} %attr(755,root,root) %{_sbindir}/smtp-gated %{_mandir}/man5/* %{_mandir}/man8/* @@ -87,6 +91,11 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.2 2005/02/27 13:36:47 hunter +-adapterized +-use init script +-pre/post start/stop + Revision 1.1 2005/02/27 13:11:27 hunter -initial ble ble ble commit ================================================================ ---- CVS-web: http://cvs.pld-linux.org/SPECS/smtp-gated.spec?r1=1.1&r2=1.2&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
