Lines 9-16
Link Here
|
9 |
SRC_URI="mirror://openssl/source/${P}.tar.gz" |
9 |
SRC_URI="mirror://openssl/source/${P}.tar.gz" |
10 |
|
10 |
|
11 |
LICENSE="openssl" |
11 |
LICENSE="openssl" |
12 |
SLOT="0" |
12 |
SLOT="0.9.8" |
13 |
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd" |
13 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" |
14 |
IUSE="bindist gmp kerberos sse2 test zlib" |
14 |
IUSE="bindist gmp kerberos sse2 test zlib" |
15 |
|
15 |
|
16 |
RDEPEND="gmp? ( dev-libs/gmp ) |
16 |
RDEPEND="gmp? ( dev-libs/gmp ) |
Lines 22-27
Link Here
|
22 |
test? ( sys-devel/bc )" |
22 |
test? ( sys-devel/bc )" |
23 |
PDEPEND="app-misc/ca-certificates" |
23 |
PDEPEND="app-misc/ca-certificates" |
24 |
|
24 |
|
|
|
25 |
pkg_setup() { |
26 |
if [[ -e ${ROOT}/usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.8 ]]; then |
27 |
rm -f "${ROOT}"/usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.8 |
28 |
fi |
29 |
} |
30 |
|
25 |
src_unpack() { |
31 |
src_unpack() { |
26 |
unpack ${A} |
32 |
unpack ${A} |
27 |
cd "${S}" |
33 |
cd "${S}" |
Lines 124-171
Link Here
|
124 |
} |
130 |
} |
125 |
|
131 |
|
126 |
src_install() { |
132 |
src_install() { |
127 |
emake -j1 INSTALL_PREFIX="${D}" install || die |
133 |
dolib.so lib{crypto,ssl}.so.0.9.8 || die |
128 |
dodoc CHANGES* FAQ NEWS README doc/*.txt doc/c-indentation.el |
|
|
129 |
dohtml -r doc/* |
130 |
|
131 |
# create the certs directory |
132 |
dodir /etc/ssl/certs |
133 |
cp -RP certs/* "${D}"/etc/ssl/certs/ || die "failed to install certs" |
134 |
rm -r "${D}"/etc/ssl/certs/{demo,expired} |
135 |
|
136 |
# Namespace openssl programs to prevent conflicts with other man pages |
137 |
cd "${D}"/usr/share/man |
138 |
local m d s |
139 |
for m in $(find . -type f | xargs grep -L '#include') ; do |
140 |
d=${m%/*} ; d=${d#./} ; m=${m##*/} |
141 |
# fix up references to renamed man pages |
142 |
sed -i '/^[.]SH "SEE ALSO"/,/^[.][^I]/s:\([^(, I]*([15])\):ssl-\1:g' ${d}/${m} |
143 |
[[ ${m} == openssl.1* ]] && continue |
144 |
[[ -n $(find -L ${d} -type l) ]] && die "erp, broken links already!" |
145 |
mv ${d}/{,ssl-}${m} |
146 |
ln -s ssl-${m} ${d}/openssl-${m} |
147 |
# locate any symlinks that point to this man page ... we assume |
148 |
# that any broken links are due to the above renaming |
149 |
for s in $(find -L ${d} -type l) ; do |
150 |
s=${s##*/} |
151 |
rm -f ${d}/${s} |
152 |
ln -s ssl-${m} ${d}/ssl-${s} |
153 |
ln -s ssl-${s} ${d}/openssl-${s} |
154 |
done |
155 |
done |
156 |
[[ -n $(find -L ${d} -type l) ]] && die "broken manpage links found :(" |
157 |
|
158 |
dodir /etc/sandbox.d #254521 |
159 |
echo 'SANDBOX_PREDICT="/dev/crypto"' > "${D}"/etc/sandbox.d/10openssl |
160 |
|
161 |
diropts -m0700 |
162 |
keepdir /etc/ssl/private |
163 |
} |
164 |
|
165 |
pkg_preinst() { |
166 |
preserve_old_lib /usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.{6,7} |
167 |
} |
168 |
|
169 |
pkg_postinst() { |
170 |
preserve_old_lib_notify /usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.{6,7} |
171 |
} |
134 |
} |