+++ /dev/null
---- a/Makefile.in
-+++ b/Makefile.in
-@@ -61,7 +61,7 @@
- LIBTOOL=./libtool
-
- COMPILE=${LIBTOOL} --mode=compile ${CC} ${CPPFLAGS} ${CFLAGS}
--LINK=${LIBTOOL} --mode=link ${CC} ${CFLAGS}
-+LINK=${LIBTOOL} --mode=link ${CC} ${CFLAGS} ${LDFLAGS}
-
-
- hparam.o: version.h
-@@ -114,27 +114,32 @@
- install:: install-man install-lib
-
- install-man:: home.conf.5
-- ${INSTALL_DATA} home.conf.5 ${mandir}/man5/
--@DO_PROXY@ ${INSTALL_DATA} home_proxy.8 ${mandir}/man8/
-+ ${INSTALL} -d $(DESTDIR)${mandir}/man5
-+@DO_PROXY@ ${INSTALL} -d $(DESTDIR)${mandir}/man8
-+ ${INSTALL_DATA} home.conf.5 $(DESTDIR)${mandir}/man5/
-+@DO_PROXY@ ${INSTALL_DATA} home_proxy.8 $(DESTDIR)${mandir}/man8/
-
- install-lib:: all
-- ${LIBTOOL} --mode=install ${INSTALL_DATA} libhome.la ${libdir}/
-+ ${INSTALL} -d $(DESTDIR)${libdir}
-+ ${INSTALL} -d $(DESTDIR)${bindir}
-+@DO_PROXY@ ${INSTALL} -d $(DESTDIR)${sbindir}
-+ ${INSTALL} -d $(DESTDIR)${includedir}/home
-+ ${LIBTOOL} --mode=install ${INSTALL_DATA} libhome.la $(DESTDIR)${libdir}/
- test "@PRELOAD_LIB@" = "" || \
-- ${LIBTOOL} --mode=install ${INSTALL_DATA} @PRELOAD_LIB@ ${libdir}/
-- ${LIBTOOL} --mode=install ${INSTALL_PROGRAM} home_finger ${bindir}/
-- ${LIBTOOL} --mode=install ${INSTALL_PROGRAM} home_su ${bindir}/
-- -mkdir -p ${includedir}/home
-- ${INSTALL_DATA} hpwd.h ${includedir}/home/pwd.h
-- ${INSTALL_DATA} hpwd.h ${includedir}/home/
-- ${INSTALL_DATA} hparam.h ${includedir}/home/
-- ${INSTALL_DATA} home_version.h ${includedir}/home/
-+ ${LIBTOOL} --mode=install ${INSTALL_DATA} @PRELOAD_LIB@ $(DESTDIR)${libdir}/
-+ ${LIBTOOL} --mode=install ${INSTALL_PROGRAM} home_finger $(DESTDIR)${bindir}/
-+ ${LIBTOOL} --mode=install ${INSTALL_PROGRAM} home_su $(DESTDIR)${bindir}/
-+ ${INSTALL_DATA} -D hpwd.h $(DESTDIR)${includedir}/home/pwd.h
-+ ${INSTALL_DATA} -D hpwd.h $(DESTDIR)${includedir}/home/
-+ ${INSTALL_DATA} -D hparam.h $(DESTDIR)${includedir}/home/
-+ ${INSTALL_DATA} -D home_version.h $(DESTDIR)${includedir}/home/
- chmod +x libhome.sh
-- ${INSTALL_SCRIPT} libhome.sh ${bindir}/
--@DO_PROXY@ ${LIBTOOL} --mode=install ${INSTALL_PROGRAM} home_proxy ${sbindir}/
--@DO_NSS@ ${LIBTOOL} --mode=install ${INSTALL_DATA} ${NSS_LIB} ${libdir}/
-+ ${INSTALL_SCRIPT} -D libhome.sh $(DESTDIR)${bindir}/
-+@DO_PROXY@ ${LIBTOOL} --mode=install ${INSTALL_PROGRAM} home_proxy $(DESTDIR)${sbindir}/
-+@DO_NSS@ ${LIBTOOL} --mode=install ${INSTALL_DATA} ${NSS_LIB} $(DESTDIR)${libdir}/
-
- install-nss:: nss
--@DO_NSS@ ${LIBTOOL} --mode=install ${INSTALL_DATA} ${NSS_LIB} ${libdir}/
-+@DO_NSS@ ${LIBTOOL} --mode=install ${INSTALL_DATA} ${NSS_LIB} $(DESTDIR)${libdir}/
-
- compat:
- -mkdir compat
+++ /dev/null
-Index: libhome-0.10.2/hldap.c
-===================================================================
---- libhome-0.10.2.orig/hldap.c
-+++ libhome-0.10.2/hldap.c
-@@ -27,6 +27,7 @@ static char const rcsid[] UNUSED =
- "$Id: libhome-0.10.2-ldap_deprecated.patch,v 1.1 2009/07/05 19:25:41 hollow Exp $";
-
- #define passwd system_passwd
-+#define LDAP_DEPRECATED 1
- #include <lber.h> /* for openldap 1.x */
- #include <ldap.h>
- #include <errno.h>
+++ /dev/null
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit autotools db-use
-
-DESCRIPTION="libhome is a library providing a getpwnam() emulation"
-HOMEPAGE="http://pll.sourceforge.net"
-SRC_URI="mirror://sourceforge/pll/${P}.tar.gz"
-
-LICENSE="LGPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="berkdb ldap mysql pam postgres static-libs"
-
-DEPEND="berkdb? ( >=sys-libs/db-4 )
- ldap? ( net-nds/openldap )
- mysql? ( dev-db/mysql-connector-c:= )
- pam? ( virtual/pam )
- postgres? ( dev-db/postgresql[server] )"
-RDEPEND="${DEPEND}"
-
-PATCHES=(
- "${FILESDIR}"/${PN}-0.10.2-Makefile.patch
- "${FILESDIR}"/${PN}-0.10.2-ldap_deprecated.patch
-)
-
-src_prepare() {
- rm -f aclocal.m4
-
- default
-
- # bug 225579
- sed -i -e 's:\<VERSION\>:__PKG_VERSION:' configure.in
-
- sed -i -e '/AC_SEARCH_LIBS.*db4/s: db-4.* db4:'$(db_libname)':' \
- configure.in
-
- eautoreconf
-}
-
-src_configure() {
- econf --without-db3 \
- $(use_with berkdb db4 $(db_includedir)) \
- $(use_with ldap) \
- $(use_with mysql) \
- $(use_with pam) \
- $(use_with postgres pgsql) \
- $(use_enable static-libs static)
-}
-
-src_install() {
- default
- use static-libs || find "${D}" -name '*.la' -delete
-}