diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2019-08-23 12:46:14 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2019-08-23 12:46:14 +0000 |
commit | 7d135651b2c5678073a2acacd769f9fdfb9b6e19 (patch) | |
tree | 81949d08d34c21241434654b18b10b4c7ca8fd5a /Keywords/ldconfig-linux.ucl | |
parent | 6611743b657e28489d7398917e8ca09444e80e90 (diff) | |
download | ports-7d135651b2c5678073a2acacd769f9fdfb9b6e19.tar.gz ports-7d135651b2c5678073a2acacd769f9fdfb9b6e19.zip |
Use keywords to simplify ldconfig code
PR: 239226
Reviewed by: mat@
Differential Revision: https://reviews.freebsd.org/D20951
Notes
Notes:
svn path=/head/; revision=509644
Diffstat (limited to 'Keywords/ldconfig-linux.ucl')
-rw-r--r-- | Keywords/ldconfig-linux.ucl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Keywords/ldconfig-linux.ucl b/Keywords/ldconfig-linux.ucl new file mode 100644 index 000000000000..7c2397a717f0 --- /dev/null +++ b/Keywords/ldconfig-linux.ucl @@ -0,0 +1,15 @@ +# $FreeBSD$ +# +# MAINTAINER: portmgr@FreeBSD.org +# + +post-install: <<EOD + if [ -n "$(/sbin/sysctl -q compat.linux.osrelease)" ]; then + %@/sbin/ldconfig + fi +EOD +post-deinstall: <<EOD + if [ -n "$(/sbin/sysctl -q compat.linux.osrelease)" ]; then + %@/sbin/ldconfig + fi +EOD |