# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Password caching daemon" HOMEPAGE="http://uranus.it.swin.edu.au/~jn/linux/smbfs/" SRC_URI="http://uranus.it.swin.edu.au/~jn/linux/smbfs/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="debug vanilla" DEPEND="" src_compile() { # Patch pwman to be more secure if ! use vanilla; then epatch ${FILESDIR}/${PV}/secure-pwman.patch epatch ${FILESDIR}/${PV}/fix-race.patch epatch ${FILESDIR}/${PV}/shared-lib.patch epatch ${FILESDIR}/${PV}/no-auto-start.patch epatch ${FILESDIR}/${PV}/expire-cache.patch epatch ${FILESDIR}/${PV}/socket-retry.patch epatch ${FILESDIR}/${PV}/fix-lock.patch fi if use debug; then epatch ${FILESDIR}/${PV}/debug.patch fi emake || die "emake failed" } src_install() { dosbin smbpwman newsbin smbpwtest smbpwman-ctrl insinto /usr/include/smbpwman doins smbpw.h exeinto /etc/init.d newexe ${FILESDIR}/${PV}/smbpwman.rc6 smbpwman exeinto /etc/cron.hourly doexe ${FILESDIR}/flush-smbpwman.cron libopts -m0755 dolib.so libsmbpwman.so } pkg_postinst() { if ! use vanilla; then einfo "Patches have been applied to make the smbpwman cache" einfo "more secure." einfo "Passwords in the cache will expire within 2 seconds." einfo "If you do not desire this, remerge it with USE=\"vanilla\"" fi }