sendmail.spec 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401
  1. ##
  2. ## sendmail.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2006 Ralf S. Engelschall <http://engelschall.com/>
  5. ##
  6. ## Permission to use, copy, modify, and distribute this software for
  7. ## any purpose with or without fee is hereby granted, provided that
  8. ## the above copyright notice and this permission notice appear in all
  9. ## copies.
  10. ##
  11. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  12. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  13. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  14. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  15. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  16. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  17. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  18. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  19. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  20. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  21. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  22. ## SUCH DAMAGE.
  23. ##
  24. # package information
  25. Name: sendmail
  26. Summary: Mail Transfer Agent
  27. URL: http://www.sendmail.org/
  28. Vendor: Eric Allman
  29. Packager: OpenPKG
  30. Distribution: OpenPKG
  31. Class: BASE
  32. Group: Mail
  33. License: BSD
  34. Version: 8.13.6
  35. Release: 20060322
  36. # package options
  37. %option with_fsl yes
  38. %option with_milter yes
  39. %option with_ssl no
  40. %option with_sasl no
  41. %option with_ldap no
  42. %option with_mysql no
  43. %option with_ipv6 no
  44. %option with_socketmap no
  45. # list of sources
  46. Source0: ftp://ftp.sendmail.org/pub/sendmail/sendmail.%{version}.tar.gz
  47. Source1: etc.sendmail.tar
  48. Source2: cf.tar
  49. Source3: fsl.sendmail
  50. Source4: rc.sendmail
  51. Patch0: sendmail.patch
  52. # build information
  53. Prefix: %{l_prefix}
  54. BuildRoot: %{l_buildroot}
  55. BuildPreReq: OpenPKG, openpkg >= 20040130, m4, gcc, make
  56. PreReq: OpenPKG, openpkg >= 20040130, m4, make, perl, procmail
  57. BuildPreReq: db >= 4.1.25
  58. PreReq: db >= 4.1.25
  59. %if "%{with_fsl}" == "yes"
  60. BuildPreReq: fsl >= 1.2.0
  61. PreReq: fsl >= 1.2.0
  62. %endif
  63. %if "%{with_ssl}" == "yes"
  64. BuildPreReq: openssl
  65. PreReq: openssl
  66. %endif
  67. %if "%{with_sasl}" == "yes"
  68. BuildPreReq: sasl, openssl
  69. PreReq: sasl, openssl
  70. %endif
  71. %if "%{with_ldap}" == "yes"
  72. BuildPreReq: openldap, openssl
  73. PreReq: openldap, openssl
  74. %endif
  75. %if "%{with_mysql}" == "yes"
  76. BuildPreReq: mysql
  77. PreReq: mysql
  78. %endif
  79. AutoReq: no
  80. AutoReqProv: no
  81. Provides: MTA
  82. Conflicts: exim, postfix, ssmtp
  83. %description
  84. Sendmail is the most popular Mail Transfer Agent (MTA). This copy
  85. contains features specific to the OpenPKG distribution including
  86. fsl(3) logging rather than syslog(3) and optional STARTTLS,
  87. SMTPAUTH, Milter and LDAP support.
  88. %track
  89. prog sendmail = {
  90. version = %{version}
  91. url = ftp://ftp.sendmail.org/pub/sendmail/
  92. regex = sendmail.(\d+\.\d+\.\d+)\.tar\.gz
  93. }
  94. %prep
  95. # unpack standard tarballs
  96. %setup -q
  97. %setup -q -T -D -a 1
  98. %patch -p0
  99. # make install process unprivileged
  100. %{l_shtool} subst \
  101. -e 's;ln -s *;$(LN) $(LNOPTS) $(DESTDIR);' \
  102. -e 's;chown;true;g' \
  103. -e 's;chgrp;true;g' \
  104. Makefile */Makefile */Makefile.m4 */*/Makefile
  105. %{l_shtool} subst \
  106. -e 's;\$chown;true;g' \
  107. -e 's;chgrp;true;g' \
  108. -e 's;chmod;true;g' \
  109. devtools/bin/install.sh
  110. # add own M4 stuff to Sendmail configuration set
  111. %{l_tar} xf %{SOURCE cf.tar}
  112. # override platform-specific definitions
  113. ( echo "#ifdef _PATH_SENDMAIL"
  114. echo "#undef _PATH_SENDMAIL"
  115. echo "#endif"
  116. ) >sed.include
  117. %{l_shtool} subst \
  118. -e 's;\(define *SMRSH_CMDDIR *\).*;\1 "%{l_prefix}/var/sendmail/sm.bin";g' \
  119. -e 's;\(define *_PATH_SENDMAIL *\).*;\1 "%{l_prefix}/sbin/sendmail";g' \
  120. -e '/# *include *<paths.h>.*/r sed.include' \
  121. -e '/undef *_PATH_SENDMAILPID/d' \
  122. include/sendmail/pathnames.h include/sm/conf.h
  123. rm -f sed.include
  124. %build
  125. # indicate with a plus sign that we use a patched version
  126. %{l_shtool} subst \
  127. -e 's;\(Version\[\][^"]*\)"[^"]*";\1"%{version}+";' \
  128. sendmail/version.c
  129. # correctly specify missing realtime functions library
  130. extlibs="%{l_fsl_libs} -ldb"
  131. case "%{l_platform -t}" in
  132. *-sunos* ) extlibs="$extlibs -lrt" ;;
  133. esac
  134. # configure Sendmail
  135. ( echo "define(\`confCC', \`%{l_cc} %{l_cflags}')dnl"
  136. echo "define(\`confMAPDEF', \`-DMAP_REGEX')dnl"
  137. echo "define(\`confSBINOWN', \`%{l_musr}')dnl"
  138. echo "define(\`confSBINGRP', \`%{l_mgrp}')dnl"
  139. echo "define(\`confUBINOWN', \`%{l_musr}')dnl"
  140. echo "define(\`confUBINGRP', \`%{l_mgrp}')dnl"
  141. echo "define(\`confMANOWN', \`%{l_musr}')dnl"
  142. echo "define(\`confMANGRP', \`%{l_mgrp}')dnl"
  143. echo "define(\`confEBINDIR', \`%{l_prefix}/libexec/sendmail')dnl"
  144. echo "define(\`confHFDIR', \`%{l_prefix}/etc/sendmail')dnl"
  145. echo "define(\`confHFFILE', \`sendmail.help')dnl"
  146. echo "define(\`confINCLUDEDIR', \`%{l_prefix}/include/sendmail')dnl"
  147. echo "define(\`confINSTALL_RAWMAN', \`1')dnl"
  148. echo "define(\`confLIBDIR', \`%{l_prefix}/lib/sendmail')dnl"
  149. echo "define(\`confMANROOT', \`%{l_prefix}/man/cat')dnl"
  150. echo "define(\`confMANROOTMAN', \`%{l_prefix}/man/man')dnl"
  151. echo "define(\`confMBINDIR', \`%{l_prefix}/sbin')dnl"
  152. echo "define(\`confSBINDIR', \`%{l_prefix}/sbin')dnl"
  153. echo "define(\`confSHAREDLIBDIR', \`%{l_prefix}/lib')dnl"
  154. echo "define(\`confSTDIR', \`%{l_prefix}/var/sendmail')dnl"
  155. echo "define(\`confSTFILE', \`sendmail.stat')dnl"
  156. echo "define(\`confUBINDIR', \`%{l_prefix}/bin')dnl"
  157. echo "define(\`confLNOPTS', \`-f')dnl"
  158. echo "define(\`confFORCE_RMAIL', \`yes')dnl"
  159. echo "APPENDDEF(\`confMSP_QUEUE_DIR',\`%{l_prefix}/var/sendmail/clientmqueue')dnl"
  160. echo "APPENDDEF(\`confENVDEF', \`-D_PATH_SENDMAILCF=\\\"%{l_prefix}/etc/sendmail/sendmail.cf\\\"')dnl"
  161. echo "APPENDDEF(\`confENVDEF', \`-D_PATH_SENDMAILPID=\\\"%{l_prefix}/var/sendmail/sendmail.pid\\\"')dnl"
  162. echo "APPENDDEF(\`confENVDEF', \`-D_DIR_SENDMAILCF=\\\"%{l_prefix}/etc/sendmail/\\\"')dnl"
  163. echo "APPENDDEF(\`confENVDEF', \`-DNEWDB')dnl"
  164. echo "APPENDDEF(\`confINCDIRS', \`%{l_cppflags}')dnl"
  165. echo "APPENDDEF(\`confLIBDIRS', \`%{l_ldflags}')dnl"
  166. echo "APPENDDEF(\`confLIBS', \`$extlibs')dnl"
  167. echo "define(\`confSTDIO_TYPE', \`portable')dnl"
  168. echo "APPENDDEF(\`confENVDEF', \`-DDNSMAP')dnl"
  169. %if "%{with_ssl}" == "yes"
  170. echo "APPENDDEF(\`conf_sendmail_ENVDEF', \`-DSTARTTLS')dnl"
  171. echo "APPENDDEF(\`conf_sendmail_ENVDEF', \`-DHASURANDOMDEV')dnl"
  172. echo "APPENDDEF(\`conf_sendmail_LIBS', \`-lssl -lcrypto')dnl"
  173. %endif
  174. %if "%{with_sasl}" == "yes"
  175. echo "APPENDDEF(\`confENVDEF', \`-DSASL=1')dnl"
  176. echo "APPENDDEF(\`confINCDIRS', \`%{l_cppflags sasl .}')dnl"
  177. echo "APPENDDEF(\`confLIBS', \`-lsasl2 -lcrypto')dnl"
  178. %endif
  179. %if "%{with_milter}" == "yes"
  180. echo "APPENDDEF(\`conf_sendmail_ENVDEF', \`-DMILTER=1')dnl"
  181. echo "APPENDDEF(\`conf_libmilter_ENVDEF', \`-D_FFR_MILTER_ROOT_UNSAFE')dnl"
  182. %else
  183. echo "APPENDDEF(\`conf_sendmail_ENVDEF', \`-DMILTER=0')dnl"
  184. %endif
  185. %if "%{with_ldap}" == "yes"
  186. echo "APPENDDEF(\`confMAPDEF', \`-DLDAPMAP')dnl"
  187. echo "APPENDDEF(\`confENVDEF', \`-DSM_CONF_LDAP_MEMFREE=1')dnl"
  188. echo "APPENDDEF(\`confLIBS', \`-lldap -llber -lssl -lcrypto')dnl"
  189. %endif
  190. %if "%{with_mysql}" == "yes"
  191. echo "APPENDDEF(\`confMAPDEF',\`-DMYSQLMAP')dnl"
  192. echo "APPENDDEF(\`confINCDIRS',\`%{l_cppflags mysql .}')dnl"
  193. echo "APPENDDEF(\`confLIBS',\`%{l_ldflags mysql .} -lmysqlclient -lz -lm')dnl"
  194. %endif
  195. %if "%{with_ipv6}" == "yes"
  196. echo "APPENDDEF(\`conf_sendmail_ENVDEF', \`-DNETINET6')dnl"
  197. echo "APPENDDEF(\`conf_libmilter_ENVDEF', \`-DNETINET6')dnl"
  198. %endif
  199. echo "APPENDDEF(\`conf_sendmail_ENVDEF', \`-DPICKY_HELO_CHECK')dnl"
  200. %if "%{with_socketmap}" == "yes"
  201. echo "APPENDDEF(\`conf_sendmail_ENVDEF', \`-DSOCKETMAP')dnl"
  202. %endif
  203. ) >devtools/Site/site.config.m4
  204. # build Sendmail package
  205. %{l_make} %{l_mflags}
  206. %if "%{with_milter}" == "yes"
  207. # have to separately invoke "Build" script in libmilter dir
  208. ( cd libmilter
  209. ./Build
  210. ) || exit $?
  211. %endif
  212. %install
  213. rm -rf $RPM_BUILD_ROOT
  214. # manually create filesystem hierarchy, because Sendmail's
  215. # install target doesn't properly create it itself.
  216. %{l_shtool} mkdir -f -p -m 755 \
  217. $RPM_BUILD_ROOT%{l_prefix} \
  218. $RPM_BUILD_ROOT%{l_prefix}/etc/sendmail \
  219. $RPM_BUILD_ROOT%{l_prefix}/bin \
  220. $RPM_BUILD_ROOT%{l_prefix}/sbin \
  221. $RPM_BUILD_ROOT%{l_prefix}/lib \
  222. $RPM_BUILD_ROOT%{l_prefix}/libexec/sendmail \
  223. $RPM_BUILD_ROOT%{l_prefix}/man \
  224. $RPM_BUILD_ROOT%{l_prefix}/man/man1 \
  225. $RPM_BUILD_ROOT%{l_prefix}/man/man5 \
  226. $RPM_BUILD_ROOT%{l_prefix}/man/man8 \
  227. $RPM_BUILD_ROOT%{l_prefix}/man/cat1 \
  228. $RPM_BUILD_ROOT%{l_prefix}/man/cat5 \
  229. $RPM_BUILD_ROOT%{l_prefix}/man/cat8
  230. # install Sendmail
  231. %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT \
  232. INSTALL=`pwd`/devtools/bin/install.sh \
  233. MAILDIR=%{l_prefix}/etc/sendmail
  234. mv $RPM_BUILD_ROOT%{l_prefix}/bin/rmail \
  235. $RPM_BUILD_ROOT%{l_prefix}/sbin/rmail
  236. %if "%{with_milter}" == "yes"
  237. # install libraries and includes for building milters
  238. %{l_shtool} mkdir -f -p -m 755 \
  239. $RPM_BUILD_ROOT%{l_prefix}/include/libmilter
  240. %{l_shtool} install -c -m 644 \
  241. include/libmilter/*.h \
  242. $RPM_BUILD_ROOT%{l_prefix}/include/libmilter/
  243. %{l_shtool} install -c -m 644 \
  244. obj.*/libsm/libsm.a \
  245. obj.*/libsmutil/libsmutil.a \
  246. obj.*/libsmdb/libsmdb.a \
  247. obj.*/libmilter/libmilter.a \
  248. $RPM_BUILD_ROOT%{l_prefix}/lib/
  249. %endif
  250. # remember the Sendmail M4 stuff for re-configuration
  251. ( %{l_tar} cf $RPM_BUILD_ROOT%{l_prefix}/etc/sendmail/cf.tar cf ) || exit $?
  252. %{l_gzip} $RPM_BUILD_ROOT%{l_prefix}/etc/sendmail/cf.tar
  253. %{l_shtool} install -c -m 644 cf/README \
  254. $RPM_BUILD_ROOT%{l_prefix}/etc/sendmail/cf.README
  255. %{l_shtool} install -c -m 755 \
  256. -e 's;^#!.*;#!%{l_prefix}/bin/perl;' \
  257. contrib/re-mqueue.pl $RPM_BUILD_ROOT%{l_prefix}/sbin/re-mqueue
  258. %{l_shtool} install -c -m 755 \
  259. -e 's;^#!.*;#!%{l_prefix}/bin/perl;' \
  260. contrib/qtool.pl $RPM_BUILD_ROOT%{l_prefix}/sbin/qtool
  261. %{l_shtool} install -c -m 755 \
  262. -e 's;^#!.*;#!%{l_prefix}/bin/perl;' \
  263. contrib/qtool.8 $RPM_BUILD_ROOT%{l_prefix}/man/man8/qtool.8
  264. # install a reasonable default configuration
  265. ( cd etc.sendmail
  266. l_hostname=`%{l_shtool} echo -e %h`
  267. l_domainname=`%{l_shtool} echo -e %d | cut -c2-`
  268. l_ostype=bsd4.4
  269. case "%{l_platform -t}" in
  270. *-freebsd4*) l_ostype=freebsd4 ;;
  271. *-freebsd*) l_ostype=bsd4.4 ;;
  272. *-sunos5.8) l_ostype=solaris8 ;;
  273. *-sunos*) l_ostype=solaris2 ;;
  274. *-linux*) l_ostype=linux ;;
  275. esac
  276. %{l_shtool} install -c -m 644 %{l_value -s -a} \
  277. -e "s;@l_hostname@;${l_hostname};g" \
  278. -e "s;@l_domainname@;${l_domainname};g" \
  279. -e "s;@l_ostype@;${l_ostype};g" \
  280. * $RPM_BUILD_ROOT%{l_prefix}/etc/sendmail/
  281. ) || exit $?
  282. # install the run-command script
  283. %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
  284. %{l_shtool} install -c -m 755 %{l_value -s -a} \
  285. %{SOURCE rc.sendmail} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
  286. # create important files which have to be present from the beginning
  287. %{l_shtool} mkdir -f -p -m 755 \
  288. $RPM_BUILD_ROOT%{l_prefix}/var/sendmail/sm.bin \
  289. $RPM_BUILD_ROOT%{l_prefix}/var/sendmail/mqueue \
  290. $RPM_BUILD_ROOT%{l_prefix}/var/sendmail/mqueue/.hoststat
  291. %{l_shtool} mkdir -f -p -m 755 \
  292. $RPM_BUILD_ROOT%{l_prefix}/var/sendmail/clientmqueue \
  293. $RPM_BUILD_ROOT%{l_prefix}/var/sendmail/clientmqueue/.hoststat
  294. touch $RPM_BUILD_ROOT%{l_prefix}/var/sendmail/sendmail.log
  295. # install OSSP fsl configuration
  296. %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/etc/fsl
  297. %{l_shtool} install -c -m 644 %{l_value -s -a} \
  298. %{SOURCE fsl.sendmail} \
  299. $RPM_BUILD_ROOT%{l_prefix}/etc/fsl/
  300. # adjust installation tree
  301. rm -rf $RPM_BUILD_ROOT%{l_prefix}/man/cat*
  302. rm -f $RPM_BUILD_ROOT%{l_prefix}/etc/sendmail/submit.cf
  303. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* 2>/dev/null || true
  304. strip $RPM_BUILD_ROOT%{l_prefix}/sbin/* 2>/dev/null || true
  305. strip $RPM_BUILD_ROOT%{l_prefix}/libexec/sendmail/* 2>/dev/null || true
  306. # determine installation files
  307. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  308. %{l_files_std} \
  309. '%not %dir %{l_prefix}/etc/fsl' \
  310. '%config %{l_prefix}/etc/fsl/fsl.sendmail' \
  311. '%attr(2755,%{l_susr},%{l_rgrp}) %{l_prefix}/sbin/sendmail' \
  312. '%attr(4755,%{l_susr},%{l_mgrp}) %{l_prefix}/bin/hoststat' \
  313. '%attr(4755,%{l_susr},%{l_mgrp}) %{l_prefix}/bin/mailq' \
  314. '%attr(4755,%{l_susr},%{l_mgrp}) %{l_prefix}/bin/newaliases' \
  315. '%attr(4755,%{l_susr},%{l_mgrp}) %{l_prefix}/bin/purgestat' \
  316. '%attr(4755,%{l_susr},%{l_mgrp}) %{l_prefix}/bin/vacation' \
  317. '%attr(4755,%{l_susr},%{l_mgrp}) %{l_prefix}/libexec/sendmail/smrsh' \
  318. '%attr(755,%{l_susr},%{l_mgrp}) %{l_prefix}/etc/sendmail' \
  319. '%config %{l_prefix}/etc/sendmail/*' \
  320. '%config %attr(644,%{l_susr},%{l_mgrp}) %{l_prefix}/etc/sendmail/ca.crt' \
  321. '%config %attr(644,%{l_susr},%{l_mgrp}) %{l_prefix}/etc/sendmail/sendmail.crt' \
  322. '%config %attr(600,%{l_susr},%{l_mgrp}) %{l_prefix}/etc/sendmail/sendmail.key' \
  323. '%attr(700,%{l_susr},%{l_mgrp}) %{l_prefix}/var/sendmail/mqueue' \
  324. '%attr(700,%{l_susr},%{l_mgrp}) %{l_prefix}/var/sendmail/mqueue/.hoststat' \
  325. '%attr(770,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/sendmail/clientmqueue' \
  326. '%attr(750,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/sendmail/clientmqueue/.hoststat' \
  327. '%attr(644,%{l_susr},%{l_mgrp}) %{l_prefix}/var/sendmail/sendmail.log'
  328. %files -f files
  329. %clean
  330. rm -rf $RPM_BUILD_ROOT
  331. %pre
  332. # before upgrade, save status and stop service
  333. if [ $1 -eq 2 ]; then
  334. eval `%{l_rc} sendmail status 2>/dev/null | tee %{l_tmpfile}`
  335. %{l_rc} sendmail stop 2>/dev/null
  336. fi
  337. exit 0
  338. %post
  339. if [ $1 -eq 1 ]; then
  340. ( cd $RPM_INSTALL_PREFIX/etc/sendmail; %{l_make} all >/dev/null 2>&1 || true ) || true
  341. elif [ $1 -gt 1 ]; then
  342. ( cd $RPM_INSTALL_PREFIX/etc/sendmail; %{l_make} clean all >/dev/null 2>&1 || true ) || true
  343. $RPM_INSTALL_PREFIX/etc/rc sendmail reload >/dev/null 2>&1 || true
  344. fi
  345. if [ $1 -eq 2 ]; then
  346. # after upgrade, restore status
  347. eval `cat %{l_tmpfile}`; rm -f %{l_tmpfile}
  348. [ ".$sendmail_active" = .yes ] && %{l_rc} sendmail start
  349. fi
  350. exit 0
  351. %preun
  352. if [ $1 -eq 0 ]; then
  353. # before erase, stop service and remove residual files
  354. %{l_rc} sendmail stop 2>/dev/null
  355. rm -f $RPM_INSTALL_PREFIX/var/sendmail/*.log* >/dev/null 2>&1 || true
  356. ( cd $RPM_INSTALL_PREFIX/etc/sendmail/;
  357. %{l_make} distclean >/dev/null 2>&1 || true
  358. ) || true
  359. d=$RPM_INSTALL_PREFIX/var/sendmail/mqueue/.hoststat/*
  360. if [ ."$d" != . ]; then
  361. rm -rf $d
  362. fi
  363. d=$RPM_INSTALL_PREFIX/var/sendmail/clientmqueue/.hoststat/*
  364. if [ ."$d" != . ]; then
  365. rm -rf $d
  366. fi
  367. fi
  368. exit 0