blob: 6202716ca07f5048dec10b5ef07144226244e40f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Copyright 1999-2007 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.4 2007/01/06 16:09:05 drizzt Exp $
inherit eutils
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="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() {
emake -C src build || die "emake libosp failed"
emake -C enroll linux || die "emake enroll failed"
emake -C test linux || die "emake test failed"
}
src_install() {
dodir /usr/include /usr/$(get_libdir)
make -C src 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:" \
bin/enroll.sh
dosbin bin/enroll*
newbin bin/test_app osp_test_app
dodoc *.txt
insinto /usr/share/doc/${PF}
doins bin/test.cfg
}
pkg_postinst() {
elog "The OSP test application is located in ${ROOT}usr/bin/osp_test_app"
elog "See ${ROOT}usr/share/doc/${PF}/test.cfg for a sample test.cfg for osp_test_app"
}
|