Magellan Linux

Annotation of /tags/old-unstable-20120113/core/pam/pam-1.1.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9870 - (hide annotations) (download)
Fri Jan 13 21:26:11 2012 UTC (12 years, 4 months ago) by niro
File size: 3058 byte(s)
tagged 'old-unstable-20120113'
1 niro 3077 # $Id$
2    
3     PNAME="pam"
4     PVER="1.1.0"
5     PBUILD="r1"
6    
7     PCATEGORIE="sys-libs"
8     STATE="unstable"
9    
10     DESCRIPTION="Pluggable Authentication Modules."
11     HOMEPAGE="http://www.kernel.org/pub/linux/libs/pam/"
12    
13     DEPEND=">= virtual/glibc
14     >= sys-libs/cracklib-2.8
15     >= dev-db/db-4.8"
16    
17     SDEPEND=">= dev-lang/perl-5
18     >= dev-libs/glib1-1.2
19     >= sys-dev/autoconf-5
20     >= sys-dev/automake-4
21     >= sys-dev/flex-2.5.35"
22    
23     SRCFILE="Linux-PAM-${PVER}.tar.bz2"
24     SRCDIR="${BUILDDIR}/Linux-PAM-${PVER}"
25    
26     sminclude mtools multilib
27    
28     SRC_URI=(
29     http://www.kernel.org/pub/linux/libs/pam/library/${SRCFILE}
30     http://www.kernel.org/pub/linux/libs/pam/pre/library/${SRCFILE}
31     mirror://${PNAME}/${SRCFILE}
32     )
33    
34     # dev releases
35     #UP2DATE="updatecmd http://www.kernel.org/pub/linux/libs/pam/pre/library | lasttarball"
36     # stable releases
37     UP2DATE="updatecmd http://www.kernel.org/pub/linux/libs/pam/library | lasttarball"
38    
39     # the strip option is not allowed, pam needs libpam.a
40     export NOSTRIP=true
41     CFLAGS="${CFLAGS/-s/}"
42     CXXFLAGS="${CFLAGS}"
43    
44     src_prepare()
45     {
46     munpack ${SRCFILE} || die
47    
48     # make sure to install readmes from all modules
49     local abi
50     for abi in ${MULTILIB_ABIS}
51     do
52     cd ${SRCDIR}-${abi}
53     install -d doc/txts || die
54     for readme in modules/pam_*/README
55     do
56     cp -f "${readme}" doc/txts/README.$(dirname "${readme}" | \
57     sed -e 's|^modules/||')
58     done
59    
60     # search in /lib/cracklib
61     sed -i 's|DICT_DIR_CANDIDATES="|&/lib /lib/cracklib |' configure || die
62     done
63     }
64    
65     src_compile()
66     {
67     export CFLAGS="${CFLAGS} -fPIC"
68    
69     mconfigure \
70     --libdir=/'$(mlibdir)' \
71     --enable-docdir=/usr/share/doc/${PNAME}-${PVER} \
72     --enable-fakeroot=${BINDIR} \
73     --enable-isadir=/'$(mlibdir)'/security \
74     || die
75    
76     # python stuff in docs gives sandbox problems
77     all-abis "sed -i 's|modules doc examples|modules|' Makefile" || die
78    
79     mmake || die
80     }
81    
82     src_install()
83     {
84     # needed directories
85     minstalldir /etc/pam.d || die
86     all-abis minstalldir /usr/'$(mlibdir)' || die
87     minstalldir /usr/share/doc/${PNAME}-${PVER}/{spec,txt} || die
88    
89     mmake DESTDIR=${BINDIR} LDCONFIG="" install || die
90    
91     local i ilver
92     for i in libpam libpam_misc libpamc
93     do
94     # get internal lib version
95     ilver="$(readlink ${BINDIR}/$(mlibdir)/${i}.so | sed s:${i}.so.::)"
96    
97     # fixing symlinks in /usr/lib
98     all-abis rm -f ${BINDIR}/usr/'$(mlibdir)'/${i}.so || die
99     all-abis mlink ../../'$(mlibdir)'/${i}.so.${ilver} /usr/'$(mlibdir)'/${i}.so || die
100    
101     # fixing symlinks in /lib
102     all-abis rm -f ${BINDIR}/'$(mlibdir)'/${i}.so || die
103     all-abis mlink ${i}.so.${ilver} /'$(mlibdir)'/${i}.so || die
104     all-abis mlink ${i}.so.${ilver} /'$(mlibdir)'/${i}.so.0 || die
105     done
106    
107     # install missing man-pages
108     minstallman doc/man/*.3 || die
109     minstallman doc/man/*.8 || die
110    
111     # needed by pam_console
112     mkeepdir /var/run/console || die
113    
114     minstalldocs CHANGELOG Copyright README || die
115     minstallfile doc/specs/\*.raw /usr/share/doc/${PNAME}-${PVER}/spec || die
116     minstallfile doc/specs/\*.txt /usr/share/doc/${PNAME}-${PVER}/spec || die
117     minstallfile doc/txts/\* /usr/share/doc/${PNAME}-${PVER}/txt || die
118     gzip -9r ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/{spec,txt} || die
119     }

Properties

Name Value
svn:keywords Id