diff options
author | Pacho Ramos <pacho@gentoo.org> | 2013-09-03 19:30:31 +0000 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2013-09-03 19:30:31 +0000 |
commit | f2af879f4913909e18aa5d1405486a9be7ce6454 (patch) | |
tree | 37d0b9cbf90fc803f5c5e012b99bad0c4aa950f0 | |
parent | Move blockers from DEPEND to RDEPEND (diff) | |
download | historical-f2af879f4913909e18aa5d1405486a9be7ce6454.tar.gz historical-f2af879f4913909e18aa5d1405486a9be7ce6454.tar.bz2 historical-f2af879f4913909e18aa5d1405486a9be7ce6454.zip |
Add unit file (#479524 by CFuga and Graham Murray)
Package-Manager: portage-2.2.1/cvs/Linux x86_64
Manifest-Sign-Key: 0xA188FBD4
-rw-r--r-- | mail-mta/sendmail/ChangeLog | 8 | ||||
-rw-r--r-- | mail-mta/sendmail/Manifest | 23 | ||||
-rw-r--r-- | mail-mta/sendmail/files/sendmail.service | 15 | ||||
-rw-r--r-- | mail-mta/sendmail/files/sm-client.service | 14 | ||||
-rw-r--r-- | mail-mta/sendmail/sendmail-8.14.7-r1.ebuild | 203 |
5 files changed, 247 insertions, 16 deletions
diff --git a/mail-mta/sendmail/ChangeLog b/mail-mta/sendmail/ChangeLog index e1caac326c90..df88b389bd60 100644 --- a/mail-mta/sendmail/ChangeLog +++ b/mail-mta/sendmail/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for mail-mta/sendmail # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/mail-mta/sendmail/ChangeLog,v 1.114 2013/08/29 19:49:33 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-mta/sendmail/ChangeLog,v 1.115 2013/09/03 19:30:26 pacho Exp $ + +*sendmail-8.14.7-r1 (03 Sep 2013) + + 03 Sep 2013; Pacho Ramos <pacho@gentoo.org> +files/sendmail.service, + +files/sm-client.service, +sendmail-8.14.7-r1.ebuild: + Add unit file (#479524 by CFuga and Graham Murray) 29 Aug 2013; Agostino Sarubbo <ago@gentoo.org> sendmail-8.14.7.ebuild: Stable for ia64, wrt bug #477622 diff --git a/mail-mta/sendmail/Manifest b/mail-mta/sendmail/Manifest index a3277484665c..a5e436d96263 100644 --- a/mail-mta/sendmail/Manifest +++ b/mail-mta/sendmail/Manifest @@ -1,5 +1,5 @@ -----BEGIN PGP SIGNED MESSAGE----- -Hash: SHA512 +Hash: SHA256 AUX libmilter-sharedlib.patch 2843 SHA256 3a753b0881fe622814b471ee5f9037905c7cc3ed08ef74908464ab5307e59d5a SHA512 31c36b57739946c1b9c7c85307fe5c53c45d7f8cbf427a0f2248db8b74871a6f5a30ef1af524915821aeca54310d28272bcd0a587cb918192214fa5c30e4a8da WHIRLPOOL 1ee6cdbee9e32e66c5836d7a296f741476d4cf03625dd4409ecdaba5001063e11b1f6f3d3b07e8150563641eaa78ff336759e278782f04bcab75d2dc73a10e8f AUX mailer.conf 1306 SHA256 f07e22401ff9fae449bfb093dfc608b6f8e71af1c7c3790d89a71af9a1411a44 SHA512 ba6a8ec150a5fd354cb60095b73ea8bf8eed729b09d553c226f8af2a2980ae87b0e97d9016f6d0e34e36fa6bb3b8565ab166212c4cd2edf7a9ebc8f89a6ce44c WHIRLPOOL 6f038d5c5183df7379fefa97112c6dcda07a45904e8c4e804a77a22da03a8af4c9ba778a678ed1e11b7ad0ff858575af9a49bf00f9e467374c23598e0834425b @@ -13,7 +13,9 @@ AUX sendmail-procmail.mc 357 SHA256 8da4cc39758ff1668d7bf7c3713914cb44ef8d084ab8 AUX sendmail-starttls-multi-crl.patch 643 SHA256 9cfbc3f9049c6380693854cd1f3af95ec24f02db7116939b808751acaed1f313 SHA512 3028c9aca8b1f69d911b8fa78027acc949b1584fdb5be514ee71cb2860658ed1a13ee964696a93af3e9999c7f02526c046455d8740129d3eea546c272df24bd2 WHIRLPOOL 986b36c2c5f1d297d3a8df409b045e940d61d09db5f6dcf927fd6e429aa8593a6db64757a12531306b320e9a23dbb4d69bfec9952ab597a241cbd11c70e611c1 AUX sendmail.mc 299 SHA256 fbf4f2bf7826cabf2072f6c113b3616c1dffd580864d708e344b5f334f1a8a38 SHA512 42ad2398ecf23198b83a990b1320b8a468556ba1c0b2b9fe94b3c58617d47c0ee38622958cc77fcbe31e2a0ace2c0295d1c4d50cd1b3c8115b6f29bccb6298c4 WHIRLPOOL b6ee2ed3bb3c140b301aeb18005752418b058c237b0739710c84573d1a854d154ac172f3d5da3182d8d361f2ec6e3146149ab9b38d774c70f16e73e308b70c9a AUX sendmail.mc-r1 337 SHA256 030998957924318f582e84a44b45045616e6af4d3c37725945f31efcc309fab5 SHA512 624e877f718c3fdcb653dd28a05e0ab89c766e19bfc2520831f846437a3160cbb7d8c520fc172bd3e85b9ffaef8125d29c340cdc57ea044fd92b316edc64d0a3 WHIRLPOOL 9e7873127017848793aad7f13cb0b2e5e4f9426e6e1265ebd1c6a93dfd38f3d3f2008e265eb260f3cd838194aecee965af39a7998a70a9ad304c551d4f2d1d88 +AUX sendmail.service 353 SHA256 8238af44ac0baa8c39d38a047933c3dc66a015b7f93254b2e1033d0d211aa933 SHA512 3bf4d502c965c56c7d421b1a1b68ab49d42f61d7227bf91d56c527ed1ae1a604aead35a6b774f6e534e9b014f3f6d1e53c00c349df1f2b90a81f70b5d5948012 WHIRLPOOL e28c138c60cf68deda558ec433314ff1a698c761c88a35e0917db371437f35016c3414c73185bd58467bdee1b3d1f6e7da7307e3c350761e331d6e410c6a5fe8 AUX site.config.m4 564 SHA256 3a7d586f8dfc24f7ed53621c04374aeca91153ded80cf17411ce417a45aade44 SHA512 82d9bbb233e6ffbcef411f8a8184b47aea27f3dc0b41ace053e0107e05a5fe6929d9dd76d3d1baf0ce43be78dc46f40888ad0c93e4f126f6ce0c0372007a262d WHIRLPOOL 3eb5169eda91a67e62fd6ece0bb69bb9dbe3f7e210a40242a172a7b3e80952713170882f89ddbb1c49b261cdefce05992c61417560e6df9e7f0860a97cb5c0bb +AUX sm-client.service 418 SHA256 c70560eb85b32895dcb36fd398b3066a39597e2def33e1eead4f55f3059c82d6 SHA512 26e5a64790fd7106e45de0f4dfafb3b648094953bd1831a223ca7c60b7cb75b673fb554b426a6aa0e7dc200a134fd042b4ecc6795641cfddd82bd04e4c7ea324 WHIRLPOOL e6b176381beb18fc240154696d8056b1483a2ff97bb7d012bece388087dcb16adf2db3b626a717b001cea8ffe8cb81e527e2174ecd463ed452fd68e2ad96e12f DIST sendmail.8.14.4.tar.gz 2080472 SHA256 bc0109437c5018b3ea8999edb63506db2f3b31c4c1ab4367cb56236a7df97cb1 DIST sendmail.8.14.5.tar.gz 2092508 SHA256 fb65a86a0f87f12aefb933ee8990540f7a680a594f7fedfdd28918f3934bfb88 SHA512 178addd247f1c7c8ca90d70b9240db4cad4e55f0710d5df0fe979e5473a182d2035150c352836576a28bb2b9660b0d5ebfcd95269a156ac0d2c3dba3edb60452 WHIRLPOOL 2e073759a44d535629d9cce91da4a7082e085defeb9491a4470a8a8c8b18e1545129527c0138a74edb405a9c9724e5a597ee99c7852a423696c495ad8fef783f DIST sendmail.8.14.6.tar.gz 2104299 SHA256 4ecbaeb2fec8829cd2852acbd8aca66a1383c1237e8401b2fa5377ee3b6d80cd SHA512 012fc396723a97ea5ad95e8b3ea6a3a40aeb97b85ed8af20ae9486729abe149e85cef4a8a16f763ae3d772a41547066434f97b25055e37590a768efa0c9c3757 WHIRLPOOL 271a09a49ab27e99365f171c617738b35a05949aeea8e6941caad712d75c0a3881da6e5528f0ca2900853a224d54db51800d1797ca80cfe7c9716a1283ff2a4d @@ -23,23 +25,14 @@ EBUILD sendmail-8.14.5-r1.ebuild 6661 SHA256 43812922f2944e90c00afd5896b720345a9 EBUILD sendmail-8.14.5-r2.ebuild 6903 SHA256 a0265ebe3c79309b0c8ef3afc7bd36ad5cb7a14736137732dbf3f8e5ac614421 SHA512 60fb452f8ba9ebb5c6435495f52208059408aca080eaf1a197d5476194b62fe634b339fe324d2fa3e3650f7b6fd61f3c08c91fa9078686adf77573527edf91c8 WHIRLPOOL eb9c7686a95618d2ef796754aa53163d1eeb13c4e1170ae40a5e9dba6936512ad6b24a82a06d886a476606057cfa0c0ea239e82828322fb76efb0901e0cf2ce8 EBUILD sendmail-8.14.5.ebuild 6611 SHA256 4daf30820408d649ffd01e4eadc1cf0be30516ce84c89af3e1243a7f6627022d SHA512 68bcbaeb44c219718e0d4aecf44b462e40293abc7fc135aac3ac16949c792b5cdc9cdce972ebe7b21f1183e7dc4ed4ae834727971965684d5bab4c3cf2c9a85e WHIRLPOOL a1a54eecfa951304e7600a37d7a401eeb806c6fa237df92e4db91971f40b6155ffc6940976cacd5f4e2d96b6b6cb7e4cf446b823cf2bcf373ef6f802c6013e2e EBUILD sendmail-8.14.6.ebuild 6922 SHA256 615c1bfbdf46826983fc68fb1302371a963d5d0a2b4df3282e297d998dc744a4 SHA512 201554d6bcce27140ac9104df51eeb9b8f5264c819ddb91ce61265256f3558c6f66169cf759eeaf70a8ad554d1b2eace3da83fbe0998cd0a84986ae2cae16867 WHIRLPOOL 7bca8b287c81df4bcf9b1cea9659de8abb1743f7d31334306c66e47493b15b74193518435b67f2fc00cc6fbee7e0bb754c5f72cccead71bbea9028cfc870c907 +EBUILD sendmail-8.14.7-r1.ebuild 7043 SHA256 a37fd29dc80dd0b9fd9693b948a562d3483b25b4096c25d5b41ae92935b0293d SHA512 f2cfb29210a3997911ae3acfcb9c395929ae185dcd8282c9803e1a7e67bf1ad235d8d2b1f535134e883a8e8db4f928838e1a4412bd10c5708cf38fd25a5b0496 WHIRLPOOL 7f250dd2dbaaf8ee139ec32a4291b2a0c2b7184201d20c891ebb76ae35d5d31db9b3f6d3e2dddac9b26e0cd6456e6ab51d50a2d96376d4b472cbe6debb1d23dc EBUILD sendmail-8.14.7.ebuild 6926 SHA256 fe4cac6bd4d48326569a902d9adb478dae7f4d6b6ad40a72758aff995cfb7abc SHA512 18925fa5439362cfb0c718cedbd9e930e389e1847b77cddeaaba31b15941a16c644c42f0c145d7d101d6f62a9b8a2156f9dbbbc4f63e82a3ac8babcc9006eb68 WHIRLPOOL 7c3976528a139a063f5e211a49ab1d8cb3e8c91810aea77f02670ffe6740f69306de3b796070ac569e3b263ea03cb94dcf2a3e1a72b31904b7f51ec60b002d80 -MISC ChangeLog 23763 SHA256 5fdcc9acbc09b4b98d20566cbae7646acaa5c458b8843e8a335f604cfb2f230e SHA512 0eb91a2cab32fce366a742b4b072ccf40d397a1841a12061963920de3b263cf77c566e05862f8563bc65ee87598dfe755c1cbfc3cb44551757a28d0f77e31e95 WHIRLPOOL bcca779f02ff2507f698875157a3845fe17268a0a4e7fa648f70cc1114d6e85eea8225daf6f31fef3ff6b7a39fda22a9c31a6f7628466eba11dd6793a45deb8b +MISC ChangeLog 23981 SHA256 75c4288ed633176c1ed22d268c510373cac346d4e51c73e0ee0ec8acdaf663ff SHA512 3b77fba75cc7cd4f6cce73e64f3dade42a25bc08d4c891ef34412c314a474b8d5ae299e18011b888e914b9eb4b55d574425eb9199a70c66abab02c5c0015d565 WHIRLPOOL 9abdf78c3e6214b9774b3d05a003136591a7a0f15effebee1575c755cc93e3c1b58b3f3c7e63e7283e4c5bd4ab668e8293cdaeb75ed31d8deca31be912b39546 MISC metadata.xml 162 SHA256 569031668e39895fb20829fb17a49a91a83e8f41b2195b0f04825c4340d2af6b SHA512 b706438a0eda682ad16d8e2217bd54d5fa9f8b305efc6e009d0bf523df159162afee0fae9107c5887e12bb64951bbee4c36c8f4744d008ba8fc2db4c01504fa2 WHIRLPOOL d1196dde03902f1b7eee5c0ad8e30243470e014ec8b6d56fe556125f636872345f0dec41e45f39fa14993db3db78a782efdcf26c3d50cdccd88f4f7c8b7dc67a -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) -iQIcBAEBCgAGBQJSH6UFAAoJELp701BxlEWfCTgQAL5MG7Bpdr9VV6sElwB2AR7B -kNuPDunY5pOme4EKM+9pg/jiG+XDskHHniemVwbMRWkf+Dkd1bTVhiT++GO3ZA+O -ER0joNRELHtzCBNRjWE2/nVQymIL1Hh7D1b9wvErS219oyVB8UN6o4PjwwsUPLtg -5OE2Z/xEGp86NXqIZxk/u0XcnZEyMyK2Q+IKbh9kfGTbt3XSmiXB1eLcASk2eCYl -sGtam4GG6WhCV2nFINeSy6MOArspwQdivWjMYbYqzort4rRn2zzjJwdJHnf4Pm4g -yItrK0XaRu44gZ4SuAlW8W1eZo09G548Kud/rRLZwCaHVEnEz9bshif616wknXx2 -hP4TyBa5xO7lzHU5AIEi6vk6MNauhl+Sjdj2OsfhRXQZKjwM5am3IHrtjicWmhdt -aRcHg4bjvwSjm49Wykw4kh93FQms602xEWxL6Wq/ej/F30r9oHmyd9x0wLWC3GTu -AoXU/2yUaZLJm156JqRwvIZwwsiqn/B1HPt0eDzpLLYU/uCuu5ynIB6KUBemugfe -9zz8q6lrZm/Knj7juBb3UK/iZW/6LlCIlJlEDfGL90tibuCO2M/mZfi4oC2SZNCp -HFZstalMTALfV/tvvf11cjyji5TYXMUs08yXprQyPxQnbCWa71z5B7WAVaxVlzYQ -XIQa3r/I4xto2T0zytKf -=5oLD +iEYEAREIAAYFAlImONQACgkQCaWpQKGI+9SdLACfXOexd+z36AUAx28TQCSB1Xmj +0xMAn2/5EH/kLXIXsrwXVJeAIzs89a03 +=AqTC -----END PGP SIGNATURE----- diff --git a/mail-mta/sendmail/files/sendmail.service b/mail-mta/sendmail/files/sendmail.service new file mode 100644 index 000000000000..1aeb769ececc --- /dev/null +++ b/mail-mta/sendmail/files/sendmail.service @@ -0,0 +1,15 @@ +[Unit] +Description=Sendmail Mail Transport Agent +After=syslog.target network.target +Wants=sm-client.service + +[Service] +Type=forking +PIDFile=/var/run/sendmail.pid +ExecStartPre=-/usr/bin/newaliases +ExecStartPre=-/bin/rm -f /var/spool/mqueue/xf* +ExecStart=/usr/sbin/sendmail -bd -q30m -L sm-mta + +[Install] +WantedBy=multi-user.target +Also=sm-client.service diff --git a/mail-mta/sendmail/files/sm-client.service b/mail-mta/sendmail/files/sm-client.service new file mode 100644 index 000000000000..4937c132914d --- /dev/null +++ b/mail-mta/sendmail/files/sm-client.service @@ -0,0 +1,14 @@ +[Unit] +Description=Sendmail Mail Transport Client +After=syslog.target network.target sendmail.service +BindTo=sendmail.service + +[Service] +Type=forking +PIDFile=/var/spool/clientmqueue/sm-client.pid +ExecStartPre=/bin/touch /var/spool/clientmqueue/sm-client.pid +ExecStartPre=/bin/chown smmsp:smmsp /var/spool/clientmqueue/sm-client.pid +ExecStart=/usr/sbin/sendmail -Ac -q30m -L sm-cm + +[Install] +WantedBy=multi-user.target diff --git a/mail-mta/sendmail/sendmail-8.14.7-r1.ebuild b/mail-mta/sendmail/sendmail-8.14.7-r1.ebuild new file mode 100644 index 000000000000..225dd96e62c2 --- /dev/null +++ b/mail-mta/sendmail/sendmail-8.14.7-r1.ebuild @@ -0,0 +1,203 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/mail-mta/sendmail/sendmail-8.14.7-r1.ebuild,v 1.1 2013/09/03 19:30:26 pacho Exp $ + +EAPI="5" +inherit eutils multilib systemd toolchain-funcs user + +DESCRIPTION="Widely-used Mail Transport Agent (MTA)" +HOMEPAGE="http://www.sendmail.org/" +SRC_URI="ftp://ftp.sendmail.org/pub/${PN}/${PN}.${PV}.tar.gz" + +LICENSE="Sendmail" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="ssl ldap sasl tcpd mbox ipv6 nis sockets" + +DEPEND="net-mail/mailbase + sys-devel/m4 + sasl? ( >=dev-libs/cyrus-sasl-2.1.10 ) + tcpd? ( sys-apps/tcp-wrappers ) + ssl? ( dev-libs/openssl ) + ldap? ( net-nds/openldap ) + >=sys-libs/db-3.2 + !net-mail/vacation + " +RDEPEND="${DEPEND} + >=net-mail/mailbase-0.00 + !mail-mta/courier + !mail-mta/esmtp + !mail-mta/exim + !mail-mta/mini-qmail + !mail-mta/msmtp[mta] + !mail-mta/netqmail + !mail-mta/nullmailer + !mail-mta/postfix + !mail-mta/opensmtpd + !mail-mta/qmail-ldap + !<mail-mta/ssmtp-2.64-r2 + !>=mail-mta/ssmtp-2.64-r2[mta]" + +PDEPEND="!mbox? ( mail-filter/procmail )" + +# libmilter library is part of sendmail, but it does not share the version number with it. +# In order to find the right libmilter version number, check SMFI_VERSION definition +# that can be found in ${S}/include/libmilter/mfapi.h (see also SM_LM_VRS_* defines). +# For example, version 1.0.1 has a SMFI_VERSION of 0x01000001. +LIBMILTER_VER=1.0.2 + +pkg_setup() { + enewgroup smmsp 209 + enewuser smmsp 209 -1 /var/spool/mqueue smmsp +} + +src_prepare() { + epatch "${FILESDIR}"/"${PN}"-8.14.6-build-system.patch + epatch "${FILESDIR}"/sendmail-delivered_hdr.patch + epatch "${FILESDIR}"/libmilter-sharedlib.patch + epatch "${FILESDIR}"/"${PN}"-8.14.5+db-5.0.patch + epatch "${FILESDIR}"/sendmail-starttls-multi-crl.patch + + local confCC="$(tc-getCC)" + local confCCOPTS="${CFLAGS}" + local confLDOPTS="${LDFLAGS}" + local confMAPDEF="-DMAP_REGEX" + local conf_sendmail_LIBS="" + use sasl && confLIBS="${confLIBS} -lsasl2" \ + && confENVDEF="${confENVDEF} -DSASL=2" \ + && confCCOPTS="${confCCOPTS} -I/usr/include/sasl" \ + && conf_sendmail_LIBS="${conf_sendmail_LIBS} -lsasl2" + use tcpd && confENVDEF="${confENVDEF} -DTCPWRAPPERS" \ + && confLIBS="${confLIBS} -lwrap" + use ssl && confENVDEF="${confENVDEF} -DSTARTTLS -D_FFR_DEAL_WITH_ERROR_SSL" \ + && confENVDEF="${confENVDEF} -D_FFR_TLS_1" \ + && confLIBS="${confLIBS} -lssl -lcrypto" \ + && conf_sendmail_LIBS="${conf_sendmail_LIBS} -lssl -lcrypto" + use ldap && confMAPDEF="${confMAPDEF} -DLDAPMAP" \ + && confLIBS="${confLIBS} -lldap -llber" + use ipv6 && confENVDEF="${confENVDEF} -DNETINET6" + use nis && confENVDEF="${confENVDEF} -DNIS" + use sockets && confENVDEF="${confENVDEF} -DSOCKETMAP" + sed -e "s:@@confCCOPTS@@:${confCCOPTS}:" \ + -e "s/@@confLDOPTS@@/${confLDOPTS}/" \ + -e "s/@@confCC@@/${confCC}/" \ + -e "s/@@confMAPDEF@@/${confMAPDEF}/" \ + -e "s/@@confENVDEF@@/${confENVDEF}/" \ + -e "s/@@confLIBS@@/${confLIBS}/" \ + -e "s/@@conf_sendmail_LIBS@@/${conf_sendmail_LIBS}/" \ + "${FILESDIR}"/site.config.m4 > devtools/Site/site.config.m4 +} + +src_compile() { + sh Build || die "compilation failed in main Build script" + pushd libmilter + sh Build MILTER_SOVER=${LIBMILTER_VER} || die "libmilter compilation failed" + popd +} + +src_install () { + local MY_LIBDIR=/usr/$(get_libdir) + local MY_OBJDIR="obj.`uname -s`.`uname -r`.`uname -m`" + dodir /usr/bin ${MY_LIBDIR} /usr/include/libmilter + dodir /usr/share/man/man{1,5,8} /usr/sbin /var/log /usr/share/sendmail-cf + dodir /var/spool/{mqueue,clientmqueue} /etc/conf.d + keepdir /var/spool/{clientmqueue,mqueue} + for dir in libsmutil sendmail mailstats praliases smrsh makemap vacation editmap + do + make DESTDIR="${D}" LIBDIR="${MY_LIBDIR}" MANROOT=/usr/share/man/man \ + SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \ + MANOWN=root MANGRP=root INCOWN=root INCGRP=root \ + LIBOWN=root LIBGRP=root GBINOWN=root GBINGRP=root \ + MSPQOWN=root CFOWN=root CFGRP=root \ + install -C "${MY_OBJDIR}/${dir}" \ + || die "install failed" + done + for dir in rmail mail.local + do + make DESTDIR="${D}" LIBDIR="${MY_LIBDIR}" MANROOT=/usr/share/man/man \ + SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \ + MANOWN=root MANGRP=root INCOWN=root INCGRP=root \ + LIBOWN=root LIBGRP=root GBINOWN=root GBINGRP=root \ + MSPQOWN=root CFOWN=root CFGRP=root \ + force-install -C "${MY_OBJDIR}/${dir}" \ + || die "install failed" + done + + make DESTDIR="${D}" LIBDIR="${MY_LIBDIR}" MANROOT=/usr/share/man/man \ + SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \ + MANOWN=root MANGRP=root INCOWN=root INCGRP=root \ + LIBOWN=root LIBGRP=root GBINOWN=root GBINGRP=root \ + MSPQOWN=root CFOWN=root CFGRP=root \ + MILTER_SOVER=${LIBMILTER_VER} \ + install -C "${MY_OBJDIR}/libmilter" \ + || die "install failed" + + fowners root:smmsp /usr/sbin/sendmail + fperms 2555 /usr/sbin/sendmail + fowners smmsp:smmsp /var/spool/clientmqueue + fperms 770 /var/spool/clientmqueue + fperms 700 /var/spool/mqueue + dosym /usr/sbin/makemap /usr/bin/makemap + dodoc FAQ KNOWNBUGS README RELEASE_NOTES doc/op/op.ps + newdoc sendmail/README README.sendmail + newdoc sendmail/SECURITY SECURITY + newdoc sendmail/TUNING TUNING + newdoc smrsh/README README.smrsh + newdoc libmilter/README README.libmilter + + newdoc cf/README README.cf + newdoc cf/cf/README README.install-cf + cp -pPR cf/* "${D}"/usr/share/sendmail-cf + + docinto contrib + dodoc contrib/* + + insinto /etc/mail + if use mbox + then + newins "${FILESDIR}"/sendmail.mc-r1 sendmail.mc + else + newins "${FILESDIR}"/sendmail-procmail.mc sendmail.mc + fi + m4 "${D}"/usr/share/sendmail-cf/m4/cf.m4 "${D}"/etc/mail/sendmail.mc \ + > "${D}"/etc/mail/sendmail.cf + echo "include(\`/usr/share/sendmail-cf/m4/cf.m4')dnl" \ + > "${D}"/etc/mail/submit.mc + cat "${D}"/usr/share/sendmail-cf/cf/submit.mc >> "${D}"/etc/mail/submit.mc + echo "# local-host-names - include all aliases for your machine here" \ + > "${D}"/etc/mail/local-host-names + cat <<- EOF > "${D}"/etc/mail/trusted-users + # trusted-users - users that can send mail as others without a warning + # apache, mailman, majordomo, uucp are good candidates + EOF + cat <<- EOF > "${D}"/etc/mail/access + # Check the /usr/share/doc/sendmail/README.cf file for a description + # of the format of this file. (search for access_db in that file) + # The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc + # package. + # + + EOF + cat <<- EOF > "${D}"/etc/conf.d/sendmail + # Config file for /etc/init.d/sendmail + # add start-up options here + SENDMAIL_OPTS="-bd -q30m -L sm-mta" # default daemon mode + CLIENTMQUEUE_OPTS="-Ac -q30m -L sm-cm" # clientmqueue + KILL_OPTS="" # add -9/-15/your favorite evil SIG level here + + EOF + if use sasl; then + dodir /etc/sasl2 + cat <<- EOF > "${D}"/etc/sasl2/Sendmail.conf + pwcheck_method: saslauthd + mech_list: PLAIN LOGIN + + EOF + fi + + doinitd "${FILESDIR}"/sendmail + systemd_dounit "${FILESDIR}"/sendmail.service + systemd_dounit "${FILESDIR}"/sm-client.service + + keepdir /usr/adm/sm.bin +} |