Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10250 - (show annotations) (download)
Fri Jan 20 12:35:03 2012 UTC (12 years, 4 months ago) by niro
Original Path: trunk/core/mailwrapper/mailwrapper-0.2.1-r10.smage2
File size: 729 byte(s)
-import from magellan-next
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
19 SRC_URI=(
20 mirror://${PNAME}/${SRCFILE}
21 mirror://${PNAME}/mailer.conf
22 )
23
24 src_compile()
25 {
26 cd ${SRCDIR}
27 gcc ${CFLAGS} -o mailwrapper mailwrapper.c fparseln.c fgetln.c || die
28 }
29
30 src_install()
31 {
32 cd ${SRCDIR}
33
34 # needed directories
35 minstalldir /usr/sbin || die
36
37 # bins
38 minstallexec mailwrapper /usr/sbin/sendmail || die
39
40 # etc
41 minstalletc mailer.conf || die
42
43 # man
44 minstallman mailer.conf.5 || die
45 minstallman mailwrapper.8 || die
46 }