Contents of /trunk/core/pam/pam-1.0.2-r1.smage2
Parent Directory | Revision Log
Revision 152 -
(show annotations)
(download)
Tue Oct 14 14:22:45 2008 UTC (15 years, 7 months ago) by niro
File size: 2998 byte(s)
Tue Oct 14 14:22:45 2008 UTC (15 years, 7 months ago) by niro
File size: 2998 byte(s)
-fixed SRC_URI
1 | # $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="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 | |
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 |
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 | cd ${SRCDIR} |
47 | |
48 | # make sure to install readmes from all modules |
49 | install -d doc/txts || die |
50 | for readme in modules/pam_*/README |
51 | do |
52 | cp -f "${readme}" doc/txts/README.$(dirname "${readme}" | \ |
53 | sed -e 's|^modules/||') |
54 | done |
55 | |
56 | # search in /lib/cracklib |
57 | sed -i 's|DICT_DIR_CANDIDATES="|&/lib /lib/cracklib |' configure || die |
58 | } |
59 | |
60 | src_compile() |
61 | { |
62 | export CFLAGS="${CFLAGS} -fPIC" |
63 | |
64 | cd ${SRCDIR} |
65 | mconfigure \ |
66 | --libdir=/$(mlibdir) \ |
67 | --enable-docdir=/usr/share/doc/${PNAME}-${PVER} \ |
68 | --enable-fakeroot=${BINDIR} \ |
69 | --enable-isadir=/$(mlibdir)/security \ |
70 | || die |
71 | |
72 | # python stuff in docs gives sandbox problems |
73 | sed -i 's|modules doc examples|modules|' Makefile || die |
74 | |
75 | mmake || die |
76 | } |
77 | |
78 | src_install() |
79 | { |
80 | cd ${SRCDIR} |
81 | |
82 | # needed directories |
83 | minstalldir /etc/pam.d || die |
84 | minstalldir /usr/$(mlibdir) || die |
85 | minstalldir /usr/share/doc/${PNAME}-${PVER}/{spec,txt} || die |
86 | |
87 | make DESTDIR=${BINDIR} LDCONFIG="" install || die |
88 | |
89 | local i ilver |
90 | for i in libpam libpam_misc libpamc |
91 | do |
92 | # get internal lib version |
93 | ilver="$(readlink ${BINDIR}/$(mlibdir)/${i}.so | sed s:${i}.so.::)" |
94 | |
95 | # fixing symlinks in /usr/lib |
96 | rm -f ${BINDIR}/usr/$(mlibdir)/${i}.so || die |
97 | mlink ../../$(mlibdir)/${i}.so.${ilver} /usr/$(mlibdir)/${i}.so || die |
98 | |
99 | # fixing symlinks in /lib |
100 | rm -f ${BINDIR}/$(mlibdir)/${i}.so || die |
101 | mlink ${i}.so.${ilver} /$(mlibdir)/${i}.so || die |
102 | mlink ${i}.so.${ilver} /$(mlibdir)/${i}.so.0 || die |
103 | done |
104 | |
105 | # install missing man-pages |
106 | minstallman doc/man/*.3 || die |
107 | minstallman doc/man/*.8 || die |
108 | |
109 | # needed by pam_console |
110 | mkeepdir /var/run/console || die |
111 | |
112 | minstalldocs CHANGELOG Copyright README || die |
113 | minstallfile doc/specs/\*.raw /usr/share/doc/${PNAME}-${PVER}/spec || die |
114 | minstallfile doc/specs/\*.txt /usr/share/doc/${PNAME}-${PVER}/spec || die |
115 | minstallfile doc/txts/\* /usr/share/doc/${PNAME}-${PVER}/txt || die |
116 | gzip -9r ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/{spec,txt} || die |
117 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |