diff options
Diffstat (limited to 'app-crypt/mit-krb5-appl')
-rw-r--r-- | app-crypt/mit-krb5-appl/Manifest | 5 | ||||
-rw-r--r-- | app-crypt/mit-krb5-appl/files/mit-krb5-appl-sig_t.patch | 55 | ||||
-rw-r--r-- | app-crypt/mit-krb5-appl/files/mit-krb5-appl-tinfo.patch | 12 | ||||
-rw-r--r-- | app-crypt/mit-krb5-appl/metadata.xml | 8 | ||||
-rw-r--r-- | app-crypt/mit-krb5-appl/mit-krb5-appl-1.0.3.ebuild | 62 |
5 files changed, 142 insertions, 0 deletions
diff --git a/app-crypt/mit-krb5-appl/Manifest b/app-crypt/mit-krb5-appl/Manifest new file mode 100644 index 000000000000..415822a3df37 --- /dev/null +++ b/app-crypt/mit-krb5-appl/Manifest @@ -0,0 +1,5 @@ +AUX mit-krb5-appl-sig_t.patch 1411 BLAKE2B c2a34ada3f811459d006c1be6e79cb0811b0ab6ef7a1eb2fa6372db5b52b7db06e1cb94d7cbcd9b883fa14d9e0cf704ebfde7a441e7348728be9511ff2b6dae5 SHA512 a25ca113d8cae969ef370aa28b274dc4573964eb78e340a86ff4e3b130c6f7a73c97a41e657a5fabb634604a3bfb8f5a04c8925a248a8f9e45a22979fd8395f3 +AUX mit-krb5-appl-tinfo.patch 575 BLAKE2B e79cbae98ea7848bbe11f0aeda1f192d51bb1b9440952d0b8606d91b0fb8dd6d1057c4eece722112a3a3bcd26596868cf534d49f4bf5dbfeee227b16f8adde19 SHA512 076f34d70f43ae34fa6bc5e23171b2b31f579812527b7f78ba40ac3fca0cd92000b8caa40b8773bd2f9cc3ce0f6bcc6815f83422d5f8d320d34c4feb580231ab +DIST krb5-appl-1.0.3-signed.tar 634880 BLAKE2B 0341ce0f3845bbf49ac2c43dea95d1bf196a9e6fb07a1bb4e8d1eac9ef74765f4b02b7f6e2794cf55ce6c7a7e2623bd325457dcb60f94b7e30bdc65a370751ad SHA512 1d85be6eb39a01c21308f6b159a375ae4ee331de8052c3990c9252f708d717b8b518f92c424bd6beebe344d940b4813e6ea11dd18df5d7caa4b5effc2513dd23 +EBUILD mit-krb5-appl-1.0.3.ebuild 1642 BLAKE2B 5636ff5fadd84d073ddb93e0e43461f864eed505ba49fa8d59a229aa97038e57d9d77888dde1390f69d9f826afc1307cbd8bce9f0a4d3787fc0522fafde92d3e SHA512 c246be6deaf8fe6651ab8b6c61cdc47f5e1afb73c7913beef5b66d571622e318751fc5e7514ef662c2ea0c4196a4dcdf64b4f685e2cef6435bc2cb6796f80bc9 +MISC metadata.xml 240 BLAKE2B 3a20174df7c37c40098c716b97f64079f86d511e3740e43865ba8e1b1fe52de971091ee51a510543cb2a49373cff87e790f71fe397975f61eee2b308b0729e66 SHA512 57354970f719cd4e3a27f6024addadbb81919a5eaaefef094d3d2b362c44b5ab5cec740090ffce89730cc52f469bc93957c129865a71a4583e0309a93e6f970d diff --git a/app-crypt/mit-krb5-appl/files/mit-krb5-appl-sig_t.patch b/app-crypt/mit-krb5-appl/files/mit-krb5-appl-sig_t.patch new file mode 100644 index 000000000000..ebdaf6b5b3d2 --- /dev/null +++ b/app-crypt/mit-krb5-appl/files/mit-krb5-appl-sig_t.patch @@ -0,0 +1,55 @@ +Bug #513762 + +From 4b45a32ba7c4f7b447919de6ce28a14150584290 Mon Sep 17 00:00:00 2001 +From: Russ Allbery <rra@stanford.edu> +Date: Wed, 21 Mar 2012 04:16:36 +0000 +Subject: [PATCH] Move redeclaration of sig_t after all system includes + +Move some internal messing about with sig_t done by gssftp/ftp/ftp_var.h +after the last system include to keep from stomping on system headers. +Required for kFreeBSD and Hurd. + +git-svn-id: svn://anonsvn.mit.edu/krb5-appl/trunk@3331 dc483132-0cff-0310-8789-dd5450dbe970 +--- + gssftp/ftp/ftp_var.h | 18 +++++++++--------- + 1 file changed, 9 insertions(+), 9 deletions(-) + +diff --git a/gssftp/ftp/ftp_var.h b/gssftp/ftp/ftp_var.h +index 3efbdb1..e478961 100644 +--- a/gssftp/ftp/ftp_var.h ++++ b/gssftp/ftp/ftp_var.h +@@ -53,15 +53,6 @@ FILE* fdopen_socket(SOCKET s, char* mode); + #define PERROR_SOCKET(str) perror(str) + #endif + +-#ifdef _WIN32 +-typedef void (*sig_t)(int); +-typedef void sigtype; +-#else +-#define sig_t my_sig_t +-#define sigtype krb5_sigtype +-typedef sigtype (*sig_t)(); +-#endif +- + /* + * FTP global variables. + */ +@@ -168,6 +159,15 @@ extern int macnum; /* number of defined macros */ + extern struct macel macros[16]; + extern char macbuf[4096]; + ++#ifdef _WIN32 ++typedef void (*sig_t)(int); ++typedef void sigtype; ++#else ++#define sig_t my_sig_t ++#define sigtype krb5_sigtype ++typedef sigtype (*sig_t)(); ++#endif ++ + #ifdef DEFINITIONS + #undef extern + #endif +-- +1.9.3 + diff --git a/app-crypt/mit-krb5-appl/files/mit-krb5-appl-tinfo.patch b/app-crypt/mit-krb5-appl/files/mit-krb5-appl-tinfo.patch new file mode 100644 index 000000000000..54c18665d336 --- /dev/null +++ b/app-crypt/mit-krb5-appl/files/mit-krb5-appl-tinfo.patch @@ -0,0 +1,12 @@ +--- configure.ac 2011-07-11 22:34:17.000000000 +0300 ++++ configure.ac 2013-02-28 15:12:24.693841664 +0200 +@@ -152,7 +152,8 @@ + [AC_DEFINE(TERMCAP,1,[Define if termcap library is available]) + LIBS="$LIBS -ltermcap"]) + AC_CHECK_LIB(curses,setupterm,LIBS="$LIBS -lcurses", +- [AC_CHECK_LIB(ncurses,setupterm,LIBS="$LIBS -lncurses")]) ++ [AC_CHECK_LIB(ncurses,setupterm,LIBS="$LIBS -lncurses", ++ [AC_CHECK_LIB(tinfo,setupterm,LIBS="$LIBS -lncurses")])]) + AC_CHECK_FUNCS(setupterm) + TELNET_LIBS="$LIBS" + TELNETD_LIBS="$LIBS" diff --git a/app-crypt/mit-krb5-appl/metadata.xml b/app-crypt/mit-krb5-appl/metadata.xml new file mode 100644 index 000000000000..b02e0cad4528 --- /dev/null +++ b/app-crypt/mit-krb5-appl/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>kerberos@gentoo.org</email> + <name>Kerberos</name> +</maintainer> +</pkgmetadata> diff --git a/app-crypt/mit-krb5-appl/mit-krb5-appl-1.0.3.ebuild b/app-crypt/mit-krb5-appl/mit-krb5-appl-1.0.3.ebuild new file mode 100644 index 000000000000..5edde7606927 --- /dev/null +++ b/app-crypt/mit-krb5-appl/mit-krb5-appl-1.0.3.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit autotools eutils flag-o-matic toolchain-funcs versionator + +MY_P=${P/mit-} +MAJOR_MINOR="$( get_version_component_range 1-2 )" +DESCRIPTION="Kerberized applications split from the main MIT Kerberos V distribution" +HOMEPAGE="http://web.mit.edu/kerberos/www/" +SRC_URI="http://web.mit.edu/kerberos/dist/krb5-appl/${MAJOR_MINOR}/${MY_P}-signed.tar" + +LICENSE="openafs-krb5-a BSD" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86" +IUSE="" + +RDEPEND=">=app-crypt/mit-krb5-1.8.0 + sys-libs/e2fsprogs-libs + sys-libs/ncurses" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S=${WORKDIR}/${MY_P} + +src_unpack() { + unpack ${A} + unpack ./"${MY_P}".tar.gz +} + +src_prepare() { + epatch "${FILESDIR}/${PN}-tinfo.patch" + epatch "${FILESDIR}/${PN}-sig_t.patch" + sed -i -e "s/-lncurses/$($(tc-getPKG_CONFIG) --libs ncurses)/" configure.ac + eautoreconf +} + +src_configure() { + append-cppflags "-I/usr/include/et" + append-cppflags -fno-strict-aliasing + append-cppflags -fno-strict-overflow + econf +} + +src_install() { + emake DESTDIR="${D}" install + for i in {telnetd,ftpd} ; do + mv "${D}"/usr/share/man/man8/${i}.8 "${D}"/usr/share/man/man8/k${i}.8 \ + || die "mv failed (man)" + mv "${D}"/usr/sbin/${i} "${D}"/usr/sbin/k${i} || die "mv failed" + done + + for i in {rcp,rlogin,rsh,telnet,ftp} ; do + mv "${D}"/usr/share/man/man1/${i}.1 "${D}"/usr/share/man/man1/k${i}.1 \ + || die "mv failed (man)" + mv "${D}"/usr/bin/${i} "${D}"/usr/bin/k${i} || die "mv failed" + done + + rm "${D}"/usr/share/man/man1/tmac.doc + dodoc README +} |