Um pam_abl für Debian nutzen zu können, ist es notwendig, dieses zu kompilieren. Um das Paketmanagement nicht außer Kraft zu setzen, muss ein entsprechendes .deb - Package installiert werden. Dieses gibt es aber für Debian (noch) nicht.
Glücklicherweise hat sich jemand bereits die Arbeit gemacht, die Source zur Verfügung zu stellen. Diese einfach in die sources.list einbinden.
/etc/apt/sources.list
#source (http://mentors.debian.net/debian/pool/main/l/libpam-abl/) deb-src http://mentors.debian.net/debian unstable main
Um aus der Quelle ein binary Debian Package erstellen zu können, werden folgende Pakete benötigt.
apt-get build-dep libpam-abl
Reading Package Lists... Done Building Dependency Tree... Done The following NEW packages will be installed: build-essential docbook docbook-dsssl docbook-to-man g++ libdb4.3-dev libosp4 libostyle1 libpam0g-dev libsp1 openjade sgml-base sgml-data sp xml-core 0 upgraded, 15 newly installed, 0 to remove and 3 not upgraded. Need to get 5326kB of archives. After unpacking 20.6MB of additional disk space will be used. Do you want to continue? [Y/n] y ...
Jetzt erstellen wir aus der Quelle das Binar-Package.
apt-get -b source libpam-abl
Reading Package Lists... Done
Building Dependency Tree... Done
Need to get 29.9kB of source archives.
Get:1 http://mentors.debian.net unstable/main libpam-abl 0.2.3-1 (dsc) [621B]
Get:2 http://mentors.debian.net unstable/main libpam-abl 0.2.3-1 (tar) [19.0kB]
Get:3 http://mentors.debian.net unstable/main libpam-abl 0.2.3-1 (diff) [10.3kB]
Fetched 29.9kB in 0s (44.9kB/s)
dpkg-source: extracting libpam-abl in libpam-abl-0.2.3
dpkg-buildpackage: source package is libpam-abl
dpkg-buildpackage: source version is 0.2.3-1
dpkg-buildpackage: source maintainer is Nicolai Ehemann <en@enlightened.de>
dpkg-buildpackage: host architecture is i386
debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
/usr/bin/make clean
make[1]: Entering directory `/root/libpam-abl-0.2.3'
rm -f pam_abl.so pam_abl.o log.o config.o rule.o
for d in tools ; do cd $d && make clean && cd .. ; done
make[2]: Entering directory `/root/libpam-abl-0.2.3/tools'
rm -f pam_abl log.o config.o rule.o pam_abl.o
make[2]: Leaving directory `/root/libpam-abl-0.2.3/tools'
make[1]: Leaving directory `/root/libpam-abl-0.2.3'
dh_clean
debian/rules build
dh_testdir
# Add here commands to configure the package.
touch configure-stamp
dh_testdir
# Add here commands to compile the package.
/usr/bin/make
make[1]: Entering directory `/root/libpam-abl-0.2.3'
cc -Wall -fPIC -c -o pam_abl.o pam_abl.c
cc -Wall -fPIC -c -o log.o log.c
cc -Wall -fPIC -c -o config.o config.c
cc -Wall -fPIC -c -o rule.o rule.c
ld -x --shared -ldb -lpthread -lc -o pam_abl.so pam_abl.o log.o config.o rule.o
for d in tools ; do cd $d && make all && cd .. ; done
make[2]: Entering directory `/root/libpam-abl-0.2.3/tools'
cc -Wall -c -o log.o log.c
cc -Wall -c -o config.o config.c
cc -Wall -c -o rule.o rule.c
cc -Wall -c -o pam_abl.o pam_abl.c
cc -ldb -lpthread -o pam_abl log.o config.o rule.o pam_abl.o
make[2]: Leaving directory `/root/libpam-abl-0.2.3/tools'
make[1]: Leaving directory `/root/libpam-abl-0.2.3'
docbook-to-man debian/pam_abl.7.sgml > pam_abl.7
docbook-to-man debian/pam_abl.8.sgml > pam_abl.8
touch build-stamp
debian/rules binary
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Add here commands to install the package into debian/tmp
/usr/bin/make install DESTDIR=/root/libpam-abl-0.2.3/debian/tmp
make[1]: Entering directory `/root/libpam-abl-0.2.3'
install -d /root/libpam-abl-0.2.3/debian/tmp/lib/security
install -d /root/libpam-abl-0.2.3/debian/tmp/etc/security
install --mode=755 --strip pam_abl.so /root/libpam-abl-0.2.3/debian/tmp/lib/security
install --mode=644 conf/pam_abl.conf /root/libpam-abl-0.2.3/debian/tmp/etc/security
install -d --mode=755 /root/libpam-abl-0.2.3/debian/tmp/var/lib/libpam-abl
for d in t tools ; do cd $d && make install && cd .. ; done
/bin/sh: line 1: cd: t: No such file or directory
make[2]: Entering directory `/root/libpam-abl-0.2.3/tools'
install -d /root/libpam-abl-0.2.3/debian/tmp/usr/sbin
install --mode=755 --strip pam_abl /root/libpam-abl-0.2.3/debian/tmp/usr/sbin
make[2]: Leaving directory `/root/libpam-abl-0.2.3/tools'
make[1]: Leaving directory `/root/libpam-abl-0.2.3'
dh_testdir
dh_testroot
dh_installchangelogs
dh_installdocs
dh_installexamples
dh_install --source=debian/tmp
dh_installcron
dh_installman pam_abl.7 pam_abl.8
dh_link
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dpkg-gencontrol: warning: unknown substitution variable ${misc:Depends}
dh_md5sums
dh_builddeb
dpkg-deb: building package `libpam-abl' in `../libpam-abl_0.2.3-1_i386.deb'.
dpkg-genchanges -b
dpkg-genchanges: binary-only upload - not including any source code
dpkg-buildpackage: binary only upload (no source included)
dpkg -i libpam-abl_0.2.3-1_i386.deb
Selecting previously deselected package libpam-abl. (Reading database ... 28214 files and directories currently installed.) Unpacking libpam-abl (from libpam-abl_0.2.3-1_i386.deb) ... Setting up libpam-abl (0.2.3-1) ...
dpkg -i /tmp/libpam-abl_0.2.3-1_i386.deb
Selecting previously deselected package libpam-abl. (Reading database ... 11355 files and directories currently installed.) Unpacking libpam-abl (from .../libpam-abl_0.2.3-1_i386.deb) ... dpkg: dependency problems prevent configuration of libpam-abl: libpam-abl depends on libdb4.3; however: Package libdb4.3 is not installed. dpkg: error processing libpam-abl (--install): dependency problems - leaving unconfigured Errors were encountered while processing: libpam-abl
apt-get install libdb4.3
Reading Package Lists... Done Building Dependency Tree... Done The following NEW packages will be installed: libdb4.3 0 upgraded, 1 newly installed, 0 to remove and 46 not upgraded. 1 not fully installed or removed. Need to get 421kB of archives. After unpacking 987kB of additional disk space will be used. Get:1 http://ftp-stud.fht-esslingen.de testing/main libdb4.3 4.3.29-4.1 [421kB] Fetched 421kB in 0s (1261kB/s) Selecting previously deselected package libdb4.3. (Reading database ... 11377 files and directories currently installed.) Unpacking libdb4.3 (from .../libdb4.3_4.3.29-4.1_i386.deb) ... Setting up libdb4.3 (4.3.29-4.1) ... Setting up libpam-abl (0.2.3-1) ...