diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-crypt/shishi | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-crypt/shishi')
-rw-r--r-- | app-crypt/shishi/Manifest | 2 | ||||
-rw-r--r-- | app-crypt/shishi/files/shishi-1.0.2_automake-1.12.patch | 24 | ||||
-rw-r--r-- | app-crypt/shishi/files/shishi_automake-1.12.patch | 35 | ||||
-rw-r--r-- | app-crypt/shishi/files/shishi_gets.patch | 20 | ||||
-rw-r--r-- | app-crypt/shishi/files/shishi_resolv.patch | 31 | ||||
-rw-r--r-- | app-crypt/shishi/files/shishid.confd | 6 | ||||
-rw-r--r-- | app-crypt/shishi/files/shishid.init | 25 | ||||
-rw-r--r-- | app-crypt/shishi/metadata.xml | 15 | ||||
-rw-r--r-- | app-crypt/shishi/shishi-1.0.1-r1.ebuild | 81 | ||||
-rw-r--r-- | app-crypt/shishi/shishi-1.0.1-r2.ebuild | 82 | ||||
-rw-r--r-- | app-crypt/shishi/shishi-1.0.1.ebuild | 79 | ||||
-rw-r--r-- | app-crypt/shishi/shishi-1.0.2.ebuild | 76 |
12 files changed, 476 insertions, 0 deletions
diff --git a/app-crypt/shishi/Manifest b/app-crypt/shishi/Manifest new file mode 100644 index 000000000000..5adc5265bc68 --- /dev/null +++ b/app-crypt/shishi/Manifest @@ -0,0 +1,2 @@ +DIST shishi-1.0.1.tar.gz 4999488 SHA256 9d7e4738df21116422585b347ad1c985d2bafd32c8665b4c5563617573e2868d SHA512 cb24baae75072e7ee20946d1d15a16c8a77e44f110f88e5f17e64d5e0110c0a00f18e8651b6f162a6e13c1a39b248ca03849c3d8ae4f8d7512dbc77f54f8d98c WHIRLPOOL 45b92a57b8b3a06a7a84160bacdc370883d8a9417f4f9b6feef36e5d6654d8db79695623265cfae6982a60679a3041741a3cbd4dafa4c75b91aebc7c08dd5e1c +DIST shishi-1.0.2.tar.gz 4917167 SHA256 0d9c8113feb22ee574187413c564140e3fa8c67fa4601fb073aec9cbc471580c SHA512 4f39b8d8cb5fbb9f2cedb55eb69620b0bc5d65a7859152db905aeafec7f2b93af459d427d06eb40fbd2870b18eb25e52c52ab0c0a265654f9ab2c3c0f7b98bab WHIRLPOOL bc96b441b37c53619acd9e5da71d0a35cbe39ca3a60fe259eba478cb7616b41fce2e663f6ce636bdccd5df93c534a3016b97540249baa13e851bb0af350b8bed diff --git a/app-crypt/shishi/files/shishi-1.0.2_automake-1.12.patch b/app-crypt/shishi/files/shishi-1.0.2_automake-1.12.patch new file mode 100644 index 000000000000..a1593c6a57ae --- /dev/null +++ b/app-crypt/shishi/files/shishi-1.0.2_automake-1.12.patch @@ -0,0 +1,24 @@ +bug #424095 +--- a/configure.ac 2012-03-12 11:18:21.000000000 -0700 ++++ b/configure.ac 2012-07-08 15:43:18.597050382 -0700 +@@ -43,6 +43,9 @@ + AC_HEADER_STDC + AC_CHECK_HEADERS(termios.h pwd.h syslog.h resolv.h arpa/nameser.h netinet/in6.h) + ++# Defined for >= automake 1.12 ++m4_ifdef([AM_PROG_AR],[AM_PROG_AR]) ++ + # Used when creating libshishi-XX.def. + SOVERSION=`expr ${LT_CURRENT} - ${LT_AGE}` + AC_SUBST(SOVERSION) +--- a/m4/po.m4 2012-03-12 11:18:53.000000000 -0700 ++++ b/m4/po.m4 2012-07-08 14:59:00.247043443 -0700 +@@ -24,7 +24,7 @@ + [ + AC_REQUIRE([AC_PROG_MAKE_SET])dnl + AC_REQUIRE([AC_PROG_INSTALL])dnl +- AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake ++ AC_REQUIRE([AC_PROG_MKDIR_P])dnl defined by automake + AC_REQUIRE([AM_NLS])dnl + + dnl Release version of the gettext macros. This is used to ensure that diff --git a/app-crypt/shishi/files/shishi_automake-1.12.patch b/app-crypt/shishi/files/shishi_automake-1.12.patch new file mode 100644 index 000000000000..484906d3c865 --- /dev/null +++ b/app-crypt/shishi/files/shishi_automake-1.12.patch @@ -0,0 +1,35 @@ +bug #424095 +diff -urN shishi-1.0.1-orig/configure.ac shishi-1.0.1/configure.ac +--- shishi-1.0.1-orig/configure.ac 2012-03-12 11:18:21.000000000 -0700 ++++ shishi-1.0.1/configure.ac 2012-07-08 15:43:18.597050382 -0700 +@@ -24,7 +24,7 @@ + AC_CONFIG_AUX_DIR([build-aux]) + AC_CONFIG_MACRO_DIR([m4]) + AC_CONFIG_HEADERS(config.h) +-AM_INIT_AUTOMAKE([1.10 -Wall -Werror -Wno-override]) ++AM_INIT_AUTOMAKE([1.10 -Wall -Wno-override]) + AM_SILENT_RULES([yes]) + + # Library code modified: REVISION++ +@@ -43,6 +43,9 @@ + AC_HEADER_STDC + AC_CHECK_HEADERS(termios.h pwd.h syslog.h resolv.h arpa/nameser.h netinet/in6.h) + ++# Defined for >= automake 1.12 ++m4_ifdef([AM_PROG_AR],[AM_PROG_AR]) ++ + # Used when creating libshishi-XX.def. + SOVERSION=`expr ${LT_CURRENT} - ${LT_AGE}` + AC_SUBST(SOVERSION) +diff -urN shishi-1.0.1-orig/m4/po.m4 shishi-1.0.1/m4/po.m4 +--- shishi-1.0.1-orig/m4/po.m4 2012-03-12 11:18:53.000000000 -0700 ++++ shishi-1.0.1/m4/po.m4 2012-07-08 14:59:00.247043443 -0700 +@@ -24,7 +24,7 @@ + [ + AC_REQUIRE([AC_PROG_MAKE_SET])dnl + AC_REQUIRE([AC_PROG_INSTALL])dnl +- AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake ++ AC_REQUIRE([AC_PROG_MKDIR_P])dnl defined by automake + AC_REQUIRE([AM_NLS])dnl + + dnl Release version of the gettext macros. This is used to ensure that diff --git a/app-crypt/shishi/files/shishi_gets.patch b/app-crypt/shishi/files/shishi_gets.patch new file mode 100644 index 000000000000..12137204f455 --- /dev/null +++ b/app-crypt/shishi/files/shishi_gets.patch @@ -0,0 +1,20 @@ +diff --git a/gl/stdio.in.h b/gl/stdio.in.h +index 06d9780..fa04a10 100644 +--- a/gl/stdio.in.h ++++ b/gl/stdio.in.h +@@ -713,10 +713,13 @@ _GL_CXXALIAS_SYS (gets, char *, (char *s)); + # endif + _GL_CXXALIASWARN (gets); + /* It is very rare that the developer ever has full control of stdin, +- so any use of gets warrants an unconditional warning. Assume it is +- always declared, since it is required by C89. */ ++ so any use of gets warrants an unconditional warning; besides C11 ++ removed it. */ ++#ifdef gets ++#undef gets + _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); + #endif ++#endif + + + #if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@ diff --git a/app-crypt/shishi/files/shishi_resolv.patch b/app-crypt/shishi/files/shishi_resolv.patch new file mode 100644 index 000000000000..6eb6beaa92ff --- /dev/null +++ b/app-crypt/shishi/files/shishi_resolv.patch @@ -0,0 +1,31 @@ +--- configure.ac 2012-03-12 20:18:21.000000000 +0200 ++++ configure.ac 2012-03-14 22:03:15.854332138 +0200 +@@ -82,7 +82,27 @@ + + # Checks for library functions. + AC_CHECK_FUNCS(signal select ngettext gethostbyname getpwnam getuid) +-AC_CHECK_LIB(resolv, res_query,, AC_MSG_WARN([[no libresolv, SRV RRs not used]])) ++ ++# libresolv provides only __res_query on some architectures ++# so we cannot just use AC_CHECK_LIB ++_save_LIBS="$LIBS" ++LIBS="$LIBS -lresolv" ++AC_MSG_CHECKING(for res_query in -lresolv) ++AC_LINK_IFELSE([ ++#include <resolv.h> ++int main() ++{ ++ res_query (0, 0, 0, 0, 0); ++ return 0; ++}], ++[_res_query_in_resolv=yes], ++[_res_query_in_resolv=no]) ++AC_MSG_RESULT([$_res_query_in_resolv]) ++if test "x$_res_query_in_resolv" = "xno"; then ++ LIBS="$_save_LIBS" ++ AC_MSG_WARN([[no libresolv, SRV RRs not used]]) ++fi ++ + AC_SEARCH_LIBS(socket, socket) + AC_SEARCH_LIBS(gethostbyname, nsl) + diff --git a/app-crypt/shishi/files/shishid.confd b/app-crypt/shishi/files/shishid.confd new file mode 100644 index 000000000000..9f0c2dad9841 --- /dev/null +++ b/app-crypt/shishi/files/shishid.confd @@ -0,0 +1,6 @@ +# /etc/conf.d/shishid + +# Options to pass to the Shishi KDC server. Please see shishid man page for details. +# +# OPTIONS="--no-tls" + diff --git a/app-crypt/shishi/files/shishid.init b/app-crypt/shishi/files/shishid.init new file mode 100644 index 000000000000..ae5f9434d3ad --- /dev/null +++ b/app-crypt/shishi/files/shishid.init @@ -0,0 +1,25 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +daemon="Shishi KDC" +exec="/usr/sbin/shishid" +pid_file="/var/run/shishid.pid" + +depend() { + need net +} + +start() { + ebegin "Starting ${daemon}" + start-stop-daemon --start --quiet --background -m --pidfile ${pid_file} \ + --exec ${exec} -- ${OPTIONS} 1>&2 + eend $? "Error starting $daemon" +} + +stop() { + ebegin "Stopping $daemon" + start-stop-daemon --stop --quiet --pidfile ${pid_file} --exec ${exec} 1>&2 + eend $? "Error stopping $daemon" +} diff --git a/app-crypt/shishi/metadata.xml b/app-crypt/shishi/metadata.xml new file mode 100644 index 000000000000..19b20b8987c3 --- /dev/null +++ b/app-crypt/shishi/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>kerberos</herd> +<longdescription lang="en">GNU Shishi, a free implementation of the Kerberos 5 network security system</longdescription> +<use> + <flag name="des">Enable DES related encryption/checksum types.</flag> + <flag name="3des">Enable 3DES encryption/checksum type.</flag> + <flag name="aes">Enable AES encryption/checksum types.</flag> + <flag name="md">Enable unkeyed MD4/MD5 checksum types.</flag> + <flag name="null">Enable dummy NULL encryption/checksum type.</flag> + <flag name="arcfour">Enable ARCFOUR encryption/checksum type.</flag> +</use> +</pkgmetadata> + diff --git a/app-crypt/shishi/shishi-1.0.1-r1.ebuild b/app-crypt/shishi/shishi-1.0.1-r1.ebuild new file mode 100644 index 000000000000..95fb4bd1284b --- /dev/null +++ b/app-crypt/shishi/shishi-1.0.1-r1.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit multilib autotools eutils + +DESCRIPTION="A free implementation of the Kerberos 5 network security system" +HOMEPAGE="https://www.gnu.org/software/shishi/" +SRC_URI="mirror://gnu/shishi/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="gnutls idn ipv6 nls pam +des +3des +aes +md +null +arcfour static-libs" + +DEPEND="gnutls? ( net-libs/gnutls ) + idn? ( net-dns/libidn ) + dev-libs/libtasn1 + dev-libs/libgcrypt:0 + dev-libs/libgpg-error + virtual/libiconv + virtual/libintl" +RDEPEND="${DEPEND}" + +src_prepare() { + # fix finding libresolv.so + epatch "${FILESDIR}/${PN}_resolv.patch" + # fix building with automake-1.12 bug #424095 + epatch "${FILESDIR}/${PN}_automake-1.12.patch" + # fix building with glibc-2.16.0 + epatch "${FILESDIR}/${PN}_gets.patch" + + # don't create a new database + sed -i -e '/install-data-hook/s/^/#/' Makefile.am || die + + eautoreconf +} + +src_configure() { + econf \ + $(use_enable pam) \ + $(use_enable nls) \ + $(use_enable ipv6) \ + $(use_with idn libidn-prefix) \ + $(use_enable gnutls starttls) \ + $(use_enable des) \ + $(use_enable 3des) \ + $(use_enable aes) \ + $(use_enable md) \ + $(use_enable null) \ + $(use_enable arcfour) \ + $(use_enable static-libs static) \ + --with-system-asn1 \ + --with-libgcrypt \ + --with-html-dir=/usr/share/doc/${P} \ + --with-db-dir=/var/shishi \ + --with-pam-dir=/$(get_libdir)/security \ + --disable-rpath \ + --with-packager="Gentoo" \ + --with-packager-bug-reports="https://bugs.gentoo.org/" +} + +src_install() { + emake DESTDIR="${D}" install + + keepdir /var/shishi + fperms 0700 /var/shishi + echo "db file /var/shishi" >> "${D}/etc/shishi/shisa.conf" || die + + newinitd "${FILESDIR}/shishid.init" shishid + newconfd "${FILESDIR}/shishid.confd" shishid + + dodoc AUTHORS ChangeLog INSTALL NEWS README THANKS + doman doc/man/* doc/*.1 + dohtml doc/reference/html/* + doinfo doc/*.info* + + rm -f "${D}/$(get_libdir)/security/pam_shishi.la" + use static-libs || find "${D}"/usr/lib* -name '*.la' -delete +} diff --git a/app-crypt/shishi/shishi-1.0.1-r2.ebuild b/app-crypt/shishi/shishi-1.0.1-r2.ebuild new file mode 100644 index 000000000000..390d48d987d4 --- /dev/null +++ b/app-crypt/shishi/shishi-1.0.1-r2.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils flag-o-matic multilib + +DESCRIPTION="A free implementation of the Kerberos 5 network security system" +HOMEPAGE="https://www.gnu.org/software/shishi/" +SRC_URI="mirror://gnu/shishi/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="gnutls idn ipv6 nls pam +des +3des +aes +md +null +arcfour static-libs" + +DEPEND="gnutls? ( net-libs/gnutls ) + idn? ( net-dns/libidn ) + dev-libs/libtasn1 + dev-libs/libgcrypt:0 + dev-libs/libgpg-error + virtual/libiconv + virtual/libintl" +RDEPEND="${DEPEND}" + +src_prepare() { + # fix finding libresolv.so + epatch "${FILESDIR}/${PN}_resolv.patch" + # fix building with automake-1.12 bug #424095 + epatch "${FILESDIR}/${PN}_automake-1.12.patch" + # fix building with glibc-2.16.0 + epatch "${FILESDIR}/${PN}_gets.patch" + + # don't create a new database + sed -i -e '/install-data-hook/s/^/#/' Makefile.am || die + + eautoreconf +} + +src_configure() { + append-cppflags -DMAX_ERROR_DESCRIPTION_SIZE=ASN1_MAX_ERROR_DESCRIPTION_SIZE + econf \ + $(use_enable pam) \ + $(use_enable nls) \ + $(use_enable ipv6) \ + $(use_with idn libidn-prefix) \ + $(use_enable gnutls starttls) \ + $(use_enable des) \ + $(use_enable 3des) \ + $(use_enable aes) \ + $(use_enable md) \ + $(use_enable null) \ + $(use_enable arcfour) \ + $(use_enable static-libs static) \ + --with-system-asn1 \ + --with-libgcrypt \ + --with-html-dir=/usr/share/doc/${P} \ + --with-db-dir=/var/shishi \ + --with-pam-dir=/$(get_libdir)/security \ + --disable-rpath \ + --with-packager="Gentoo" \ + --with-packager-bug-reports="https://bugs.gentoo.org/" +} + +src_install() { + emake DESTDIR="${D}" install + + keepdir /var/shishi + fperms 0700 /var/shishi + echo "db file /var/shishi" >> "${D}/etc/shishi/shisa.conf" || die + + newinitd "${FILESDIR}/shishid.init" shishid + newconfd "${FILESDIR}/shishid.confd" shishid + + dodoc AUTHORS ChangeLog INSTALL NEWS README THANKS + doman doc/man/* doc/*.1 + dohtml doc/reference/html/* + doinfo doc/*.info* + + rm -f "${D}/$(get_libdir)/security/pam_shishi.la" + use static-libs || find "${D}"/usr/lib* -name '*.la' -delete +} diff --git a/app-crypt/shishi/shishi-1.0.1.ebuild b/app-crypt/shishi/shishi-1.0.1.ebuild new file mode 100644 index 000000000000..a0c9d0e966eb --- /dev/null +++ b/app-crypt/shishi/shishi-1.0.1.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit multilib autotools eutils + +DESCRIPTION="A free implementation of the Kerberos 5 network security system" +HOMEPAGE="https://www.gnu.org/software/shishi/" +SRC_URI="mirror://gnu/shishi/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="gnutls idn ipv6 nls pam +des +3des +aes +md +null +arcfour static-libs" + +DEPEND="gnutls? ( net-libs/gnutls ) + idn? ( net-dns/libidn ) + dev-libs/libtasn1 + dev-libs/libgcrypt:0 + dev-libs/libgpg-error + virtual/libiconv + virtual/libintl" +RDEPEND="${DEPEND}" + +src_prepare() { + # fix finding libresolv.so + epatch "${FILESDIR}/${PN}_resolv.patch" + # fix building with automake-1.12 bug #424095 + epatch "${FILESDIR}/${PN}_automake-1.12.patch" + + # don't create a new database + sed -i -e '/install-data-hook/s/^/#/' Makefile.am || die + + eautoreconf +} + +src_configure() { + econf \ + $(use_enable pam) \ + $(use_enable nls) \ + $(use_enable ipv6) \ + $(use_with idn libidn-prefix) \ + $(use_enable gnutls starttls) \ + $(use_enable des) \ + $(use_enable 3des) \ + $(use_enable aes) \ + $(use_enable md) \ + $(use_enable null) \ + $(use_enable arcfour) \ + $(use_enable static-libs static) \ + --with-system-asn1 \ + --with-libgcrypt \ + --with-html-dir=/usr/share/doc/${P} \ + --with-db-dir=/var/shishi \ + --with-pam-dir=/$(get_libdir)/security \ + --disable-rpath \ + --with-packager="Gentoo" \ + --with-packager-bug-reports="https://bugs.gentoo.org/" +} + +src_install() { + emake DESTDIR="${D}" install + + keepdir /var/shishi + fperms 0700 /var/shishi + echo "db file /var/shishi" >> "${D}/etc/shishi/shisa.conf" || die + + newinitd "${FILESDIR}/shishid.init" shishid + newconfd "${FILESDIR}/shishid.confd" shishid + + dodoc AUTHORS ChangeLog INSTALL NEWS README THANKS + doman doc/man/* doc/*.1 + dohtml doc/reference/html/* + doinfo doc/*.info* + + rm -f "${D}/$(get_libdir)/security/pam_shishi.la" + use static-libs || find "${D}"/usr/lib* -name '*.la' -delete +} diff --git a/app-crypt/shishi/shishi-1.0.2.ebuild b/app-crypt/shishi/shishi-1.0.2.ebuild new file mode 100644 index 000000000000..a5074ac2618d --- /dev/null +++ b/app-crypt/shishi/shishi-1.0.2.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils flag-o-matic multilib + +DESCRIPTION="A free implementation of the Kerberos 5 network security system" +HOMEPAGE="https://www.gnu.org/software/shishi/" +SRC_URI="mirror://gnu/shishi/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="gnutls idn ipv6 nls pam +des +3des +aes +md +null +arcfour static-libs" + +DEPEND="gnutls? ( net-libs/gnutls ) + idn? ( net-dns/libidn ) + dev-libs/libtasn1 + dev-libs/libgcrypt:0 + dev-libs/libgpg-error + virtual/libiconv + virtual/libintl" +RDEPEND="${DEPEND}" + +src_prepare() { + # fix building with automake-1.12 bug #424095 + epatch "${FILESDIR}/${P}_automake-1.12.patch" + + # don't create a new database + sed -i -e '/install-data-hook/s/^/#/' Makefile.am || die + + eautoreconf +} + +src_configure() { + econf \ + $(use_enable pam) \ + $(use_enable nls) \ + $(use_enable ipv6) \ + $(use_with idn libidn-prefix) \ + $(use_enable gnutls starttls) \ + $(use_enable des) \ + $(use_enable 3des) \ + $(use_enable aes) \ + $(use_enable md) \ + $(use_enable null) \ + $(use_enable arcfour) \ + $(use_enable static-libs static) \ + --with-libgcrypt \ + --with-html-dir=/usr/share/doc/${P} \ + --with-db-dir=/var/shishi \ + --with-pam-dir=/$(get_libdir)/security \ + --disable-rpath \ + --with-packager="Gentoo" \ + --with-packager-bug-reports="https://bugs.gentoo.org/" +} + +src_install() { + emake DESTDIR="${D}" install + + keepdir /var/shishi + fperms 0700 /var/shishi + echo "db file /var/shishi" >> "${D}/etc/shishi/shisa.conf" || die + + newinitd "${FILESDIR}/shishid.init" shishid + newconfd "${FILESDIR}/shishid.confd" shishid + + dodoc AUTHORS ChangeLog INSTALL NEWS README THANKS + doman doc/man/* doc/*.1 + dohtml doc/reference/html/* + doinfo doc/*.info* + + rm -f "${D}/$(get_libdir)/security/pam_shishi.la" + use static-libs || find "${D}"/usr/lib* -name '*.la' -delete +} |