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