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