diff options
author | Eray Aslan <eras@gentoo.org> | 2012-03-15 15:01:21 +0000 |
---|---|---|
committer | Eray Aslan <eras@gentoo.org> | 2012-03-15 15:01:21 +0000 |
commit | 394266eb9fdd0be7ecfe191cb277526ab99a8c9a (patch) | |
tree | 520efd5379d6fda4a405b637c6670c5f7095a8bc /app-crypt | |
parent | For 3.2.4-r1, fall back to the theme in /etc/gtk-3.0/settings.ini if the them... (diff) | |
download | gentoo-2-394266eb9fdd0be7ecfe191cb277526ab99a8c9a.tar.gz gentoo-2-394266eb9fdd0be7ecfe191cb277526ab99a8c9a.tar.bz2 gentoo-2-394266eb9fdd0be7ecfe191cb277526ab99a8c9a.zip |
Initial import - bug #255461. Based on ebuild by AD Rutledge
(Portage version: 2.1.10.49/cvs/Linux x86_64)
Diffstat (limited to 'app-crypt')
-rw-r--r-- | app-crypt/shishi/ChangeLog | 11 | ||||
-rw-r--r-- | app-crypt/shishi/Manifest | 7 | ||||
-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.ebuild | 76 |
7 files changed, 171 insertions, 0 deletions
diff --git a/app-crypt/shishi/ChangeLog b/app-crypt/shishi/ChangeLog new file mode 100644 index 000000000000..a3be55229fe9 --- /dev/null +++ b/app-crypt/shishi/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for app-crypt/shishi +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/shishi/ChangeLog,v 1.1 2012/03/15 15:01:21 eras Exp $ + +*shishi-1.0.1 (15 Mar 2012) + + 15 Mar 2012; Eray Aslan <eras@gentoo.org> +shishi-1.0.1.ebuild, + +files/shishi_resolv.patch, +files/shishid.confd, +files/shishid.init, + +metadata.xml: + Initial import - bug #255461. Based on ebuild by AD Rutledge + diff --git a/app-crypt/shishi/Manifest b/app-crypt/shishi/Manifest new file mode 100644 index 000000000000..2ccd60296da5 --- /dev/null +++ b/app-crypt/shishi/Manifest @@ -0,0 +1,7 @@ +AUX shishi_resolv.patch 897 RMD160 61ec19e82d6fc31fc76dd2a0657c38acaa048b58 SHA1 a316447c5129039c215e55244434aaad8d9044c5 SHA256 231af9a2eddf7358551bfc48063824121e99a37c46332c70ddfd45fc0f0d887f +AUX shishid.confd 133 RMD160 3afc24e1493db1dd90672b871792fd29aac90ec3 SHA1 2711c93d6e39445044dc862ff4bb305c6e28c580 SHA256 7280cdf9d4cdcb1be8298727c29630a04e62fb4b1c1f1c0d1528e1389b81408d +AUX shishid.init 577 RMD160 c69faa4953119ef444b42ad78b17a84eb7a8693e SHA1 3555ebe6ffaccb0412618bcf73f6f35581c36f01 SHA256 3a40e4f05069525d083b8a6a0adab92d1e02829b110c21bf558e474a2e68b874 +DIST shishi-1.0.1.tar.gz 4999488 RMD160 818a57b081606aba669807855d2aee038b0a3b00 SHA1 0e914dbcc27516702acd668929b29c42f850daf5 SHA256 9d7e4738df21116422585b347ad1c985d2bafd32c8665b4c5563617573e2868d +EBUILD shishi-1.0.1.ebuild 1938 RMD160 4729b8493a930b5de4a0cd6308c08cdc1600721d SHA1 ad182d2a16d7a379a509d92559c03d1120872164 SHA256 2e04a9457b3795772f31b7d28f51e85e3b06e15027b823edaa753097c1e626e6 +MISC ChangeLog 366 RMD160 e85e27f79693d180f6c61a533c91c6f3f55c9b45 SHA1 0cd77f57df62f963e5a4b993e3513b45e1a835ce SHA256 a536e312abc0ba402b3ae7d5d26963c04783a42d7342d5c5ec7c22496285b23e +MISC metadata.xml 703 RMD160 9931edcb395928d5383cb999dc39b34f585664e9 SHA1 852bb31b01f0268b43308bf0f48bc05b378b6c11 SHA256 94e7555ed79d1dcd1263c42f96b3396d96bee92486044c50d6104c646366c1f0 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..22751e48ab26 --- /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 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/shishi/files/shishid.init,v 1.1 2012/03/15 15:01:21 eras Exp $ + +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.ebuild b/app-crypt/shishi/shishi-1.0.1.ebuild new file mode 100644 index 000000000000..1ec64d196fd4 --- /dev/null +++ b/app-crypt/shishi/shishi-1.0.1.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/shishi/shishi-1.0.1.ebuild,v 1.1 2012/03/15 15:01:21 eras Exp $ + +DESCRIPTION="A free implementation of the Kerberos 5 network security system" +HOMEPAGE="https://www.gnu.org/software/shishi/" +SRC_URI="http://ftp.gnu.org/gnu/shishi/${P}.tar.gz" +EAPI=4 +inherit multilib autotools eutils + +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 + dev-libs/libgpg-error + virtual/libiconv + virtual/libintl" +RDEPEND="${DEPEND}" + +src_prepare() { + # fix finding libresolv.so + epatch "${FILESDIR}/${PN}_resolv.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 +} |