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