Contents of /trunk/extras/ssmtp/ssmtp-2.61-r6.smage2
Parent Directory | Revision Log
Revision 2 -
(show annotations)
(download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 1867 byte(s)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 1867 byte(s)
import repo
1 | # $Header: /magellan-cvs/smage/ssmtp/ssmtp-2.61-r6.smage2,v 1.1 2008/02/11 23:09:40 niro Exp $ |
2 | |
3 | PNAME="ssmtp" |
4 | PVER="2.61" |
5 | PBUILD="r6" |
6 | |
7 | PCATEGORIE="net-mail" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="Extremely simple MTA to get mails off the system to a Mailhub." |
11 | HOMEPAGE="ftp://ftp.debian.org/debian/pool/main/s/ssmtp/" |
12 | |
13 | DEPEND=">= virtual/glibc |
14 | >= net-mail/mail-base-files-0.1 |
15 | >= dev-libs/openssl-0.9.8 |
16 | >= net-mail/mailwrapper-0.2.1" |
17 | |
18 | PROVIDE="virtual/mta" |
19 | |
20 | SRCFILE="${PNAME}_${PVER}.tar.gz" |
21 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER/.9/}" |
22 | |
23 | sminclude mtools |
24 | |
25 | MAILER_CONF_CVS_REV=1.2 |
26 | |
27 | SRC_URI=( |
28 | mirror://${PNAME}/${SRCFILE} |
29 | mirror://${PNAME}/ssmtp.conf-2.60.9 |
30 | mirror://${PNAME}/mailer.conf-${MAILER_CONF_CVS_REV} |
31 | mirror://${PNAME}/${PNAME}-${PVER}-bug127592.patch |
32 | ) |
33 | |
34 | src_prepare() |
35 | { |
36 | munpack ${SRCFILE} || die |
37 | cd ${SRCDIR} |
38 | |
39 | mpatch ${PNAME}-${PVER}-bug127592.patch || die |
40 | } |
41 | |
42 | src_compile() |
43 | { |
44 | cd ${SRCDIR} |
45 | |
46 | mconfigure \ |
47 | --sysconfdir=/etc/ssmtp \ |
48 | --enable-ssl \ |
49 | --enable-inet6 \ |
50 | --enable-md5auth \ |
51 | || die |
52 | |
53 | make clean || die |
54 | make etcdir=/etc || die |
55 | } |
56 | |
57 | src_install() |
58 | { |
59 | cd ${SRCDIR} |
60 | |
61 | # needed directories (lib is wanted do not use mlibdir()!!) |
62 | minstalldir /usr/lib || die |
63 | minstalldir /usr/sbin || die |
64 | |
65 | # bins |
66 | minstallexec ssmtp /usr/sbin || die |
67 | |
68 | # etc |
69 | minstalletc ssmtp.conf-2.60.9 ssmtp.conf /etc/ssmtp || die |
70 | minstalletc ${SRCDIR}/revaliases revaliases /etc/ssmtp || die |
71 | |
72 | # make use net-mail/mailwrapper as default sendmail |
73 | mlink /usr/sbin/ssmtp /usr/sbin/sendmail.ssmtp || die |
74 | minstalletc mailer.conf-${MAILER_CONF_CVS_REV} mailer.conf /etc/mail || die |
75 | |
76 | # mans & docs |
77 | minstallman ssmtp.8 || die |
78 | minstalldocs CHANGELOG_OLD COPYING INSTALL README TLS ssmtp.lsm || die |
79 | } |
80 | |
81 | postinstall() |
82 | { |
83 | if [ ! -d ${MROOT}/var/spool/mail ] |
84 | then |
85 | install -d ${MROOT}/var/spool/mail |
86 | fi |
87 | |
88 | chown root:mail ${MROOT}/var/spool/mail |
89 | chmod 0775 ${MROOT}/var/spool/mail |
90 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |