diff options
Diffstat (limited to 'net-libs/osptoolkit/osptoolkit-3.3.4.ebuild')
-rw-r--r-- | net-libs/osptoolkit/osptoolkit-3.3.4.ebuild | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/net-libs/osptoolkit/osptoolkit-3.3.4.ebuild b/net-libs/osptoolkit/osptoolkit-3.3.4.ebuild new file mode 100644 index 000000000000..e76dad81fa73 --- /dev/null +++ b/net-libs/osptoolkit/osptoolkit-3.3.4.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/osptoolkit/osptoolkit-3.3.4.ebuild,v 1.1 2006/02/02 01:45:17 stkn Exp $ + +DESCRIPTION="OSP (Open Settlement Protocol) library" +HOMEPAGE="http://www.transnexus.com/" +SRC_URI="http://www.transnexus.com/OSP%20Toolkit/Toolkits%20for%20Download/OSPToolkit-${PV}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~x86" + +IUSE="" + +RDEPEND="virtual/libc + dev-libs/openssl" + +DEPEND="${RDEPEND}" + +S=${WORKDIR}/TK-${PV//./_}-20051103 + +src_unpack() { + unpack ${A} + + cd ${S} + sed -i -e "s:\$(INSTALL_PATH)/lib:\$(INSTALL_PATH)/\$(LIBDIR):" \ + src/Makefile +} + +src_compile() { + cd ${S}/src + emake build || die "emake libosp failed" + + cd ${S}/enroll + emake linux || die "emake enroll failed" + + cd ${S}/test + emake linux || die "emake test failed" +} + +src_install() { + dodir /usr/include /usr/$(get_libdir) + + cd ${S}/src + make INSTALL_PATH=${D}/usr LIBDIR=$(get_libdir) \ + install || die "make install failed" + + sed -i -e "s:^\(OPENSSL_CONF\).*:\1=/etc/ssl/openssl.cnf:" \ + -e "s:^\(RANDFILE\).*:\1=/etc/ssl/.rnd:" \ + ${S}/bin/enroll.sh + + dosbin ${S}/bin/enroll* + newbin ${S}/bin/test_app osp_test_app + + cd ${S} + dodoc *.txt + + insinto /usr/share/doc/${PF} + doins bin/test.cfg +} + +pkg_postinst() { + einfo "The OSP test application is located in ${ROOT}usr/bin/osp_test_app" + einfo "See ${ROOT}usr/share/doc/${PF}/test.cfg for a sample test.cfg for osp_test_app" +} |