Magellan Linux

Annotation of /trunk/core/ppp/ppp-2.4.4-r8.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1550 - (hide annotations) (download)
Mon May 11 09:02:11 2009 UTC (15 years ago) by niro
File size: 2613 byte(s)
/etc/ppp/options is a file
1 niro 1550 # $Id$
2    
3     PNAME="ppp"
4     PVER="2.4.4"
5     PBUILD="r8"
6    
7     PCATEGORIE="net-dialup"
8     STATE="unstable"
9    
10     DESCRIPTION="PPP (Point-to-Point Protocol) client and utilities."
11     HOMEPAGE="http://ppp.samba.org/"
12    
13     DEPEND=">= sys-libs/libcap-1.10
14     >= sys-libs/pam-0.99"
15    
16     SDEPEND=">= sys-apps/sed-4"
17    
18     SRCFILE="${PNAME}-${PVER}.tar.gz"
19     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
20    
21     sminclude mtools
22    
23     RC_REV="1.4"
24    
25     SRC_URI=(
26     ftp://ftp.samba.org/pub/${PNAME}/${SRCFILE}
27     mirror://${PNAME}/${SRCFILE}
28     mirror://${PNAME}/ppp.rc-${RC_REV}
29     mirror://${PNAME}/ppp.confd
30     mirror://${PNAME}/ip-up
31     mirror://${PNAME}/ip-down
32     mirror://${PNAME}/modules.ppp
33     mirror://${PNAME}/provider.example
34     )
35    
36     UP2DATE="updatecmd ${HOMEPAGE} | grep latest | sed 's/.* \(.*\), .*/\1/'"
37    
38     src_prepare()
39     {
40     munpack ${SRCFILE} || die
41     cd ${SRCDIR}
42    
43     # enable ipv6 support
44     sed -i "s:^#HAVE_INET6:HAVE_INET6:" pppd/Makefile.linux || die
45    
46     # enable pam support
47     sed -i "s:^#USE_PAM=y:USE_PAM=y:" pppd/Makefile.linux || die
48    
49     # fix libdir on 64bit arches
50     sed -i "s:/lib/pppd:/$(mlibdir)/pppd:" pppd/pathnames.h || die
51     sed -i "s:/lib/pppd:/$(mlibdir)/pppd:" pppd/pppd.8 || die
52     sed -i "s:^\(LIBDIR =\).*:\1 \$(DESTDIR)/$(mlibdir)/pppd/\$(VERSION):" \
53     pppd/plugins/Makefile.linux || die
54     }
55    
56     src_compile()
57     {
58     cd ${SRCDIR}
59     mconfigure || die
60     mmake || die
61    
62     # compile pppgetpass too
63     mmake -C contrib/pppgetpass pppgetpass.vt || die
64     }
65    
66     src_install()
67     {
68     cd ${SRCDIR}
69    
70     minstalldir /etc/ppp || die
71    
72     mmake INSTROOT=${BINDIR} install || die
73     mmake INSTROOT=${BINDIR} install-etcppp || die
74    
75     # fix permissions
76     mchmod u+s-w /usr/sbin/pppd || die
77    
78     # pam related stuff
79     minstallpam pppd/ppp.pam ppp || die
80    
81     # install module aliases
82     minstalldir /etc/modules.d || die
83     minstallfile -s modules.ppp /etc/modules.d/ppp || die
84    
85     # helper scripts
86     minstallexec -s ip-up /etc/ppp || die
87     minstallexec -s ip-down /etc/ppp || die
88    
89     # install our initscript
90     minstallrc ppp.rc-${RC_REV} ppp || die
91     minstallconf ppp.confd ppp || die
92    
93     # install a provider example
94     mkeepdir /etc/ppp/peers || die
95     minstallfile -s provider.example /etc/ppp/peers || die
96    
97     # some nice scripts and progs
98     minstallexec scripts/pon /usr/sbin || die
99     minstallexec scripts/poff /usr/sbin || die
100     minstallexec scripts/plog /usr/sbin || die
101     minstallexec contrib/pppgetpass/pppgetpass.vt /usr/sbin/pppgetpass || die
102    
103     # missing man pages
104     minstallman scripts/pon.1 || die
105     minstallman contrib/pppgetpass/pppgetpass.8 || die
106    
107     # more example scripts
108     minstalldir /usr/share/doc/${PNAME}-${PVER} || die
109     cp -R scripts ${BINDIR}/usr/share/doc/${PNAME}-${PVER} || die
110    
111     minstalldocs Changes* FAQ PLUGINS README* SETUP || die
112     }

Properties

Name Value
svn:keywords Id