mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-18 03:46:03 +00:00
bda9c1f4db
Reported by: krismail
11 lines
410 B
Bash
11 lines
410 B
Bash
#!/bin/sh
|
|
|
|
if [ "$2" = "POST-INSTALL" ]; then
|
|
echo "${PKG_PREFIX}/lib/ocaml/site-lib/sem" >> ${PKG_PREFIX}/lib/ocaml/ld.conf
|
|
elif [ "$2" = "DEINSTALL" ]; then
|
|
mv ${PKG_PREFIX}/lib/ocaml/ld.conf ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp
|
|
grep -v sem ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp > ${PKG_PREFIX}/lib/ocaml/ld.conf
|
|
rm -f ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp
|
|
chmod 0644 ${PKG_PREFIX}/lib/ocaml/ld.conf
|
|
fi
|