Magellan Linux

Contents of /branches/R11-unstable/core/mailwrapper/mailwrapper-0.2.1-r10.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 25020 - (show annotations) (download)
Tue Nov 25 02:50:29 2014 UTC (9 years, 5 months ago) by niro
File size: 750 byte(s)
-release branches/R11-unstable
1 # $Id$
2
3 PNAME="mailwrapper"
4 PVER="0.2.1"
5 PBUILD="r10"
6
7 PCAT="net-mail"
8
9 DESCRIPTION="Program to invoke an appropriate MTA based on a config file."
10 HOMEPAGE="http://www.gentoo.org/"
11
12 DEPEND=""
13
14 SRCFILE="${PNAME}-${PVER}.tbz2"
15 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
16
17 sminclude mbuild mtools
18 msetfeature "!check"
19
20 SRC_URI=(
21 mirror://${PNAME}/${SRCFILE}
22 mirror://${PNAME}/mailer.conf
23 )
24
25 src_compile()
26 {
27 cd ${SRCDIR}
28 gcc ${CFLAGS} -o mailwrapper mailwrapper.c fparseln.c fgetln.c || die
29 }
30
31 src_install()
32 {
33 cd ${SRCDIR}
34
35 # needed directories
36 minstalldir /usr/sbin || die
37
38 # bins
39 minstallexec mailwrapper /usr/sbin/sendmail || die
40
41 # etc
42 minstalletc mailer.conf || die
43
44 # man
45 minstallman mailer.conf.5 || die
46 minstallman mailwrapper.8 || die
47 }