diff options
author | flz <flz@FreeBSD.org> | 2006-01-12 20:35:03 +0800 |
---|---|---|
committer | flz <flz@FreeBSD.org> | 2006-01-12 20:35:03 +0800 |
commit | 84d7c4e032c328aee7f8b57d54fce74e1609e36d (patch) | |
tree | 9a48e926b2825d35f09ac18476c518fc212b1112 /misc | |
parent | 08161b552e335de623e973f770fe748595d6a186 (diff) | |
download | freebsd-ports-gnome-84d7c4e032c328aee7f8b57d54fce74e1609e36d.tar.gz freebsd-ports-gnome-84d7c4e032c328aee7f8b57d54fce74e1609e36d.tar.zst freebsd-ports-gnome-84d7c4e032c328aee7f8b57d54fce74e1609e36d.zip |
- Adding sensible defaults to the startup script so people don't need to
touch /etc/rc.conf anymore.
- Silent @dirrm for ldconfig directories, this ensures a quiet upgrade.
- Fix installation with package, directories weren't created.
Noticed by: pav
Diffstat (limited to 'misc')
-rw-r--r-- | misc/ldconfig_compat/Makefile | 11 | ||||
-rw-r--r-- | misc/ldconfig_compat/files/ldconfig_compat.sh.in | 5 | ||||
-rw-r--r-- | misc/ldconfig_compat/pkg-message | 10 |
3 files changed, 10 insertions, 16 deletions
diff --git a/misc/ldconfig_compat/Makefile b/misc/ldconfig_compat/Makefile index fdc46220fdfa..c568f02d76bf 100644 --- a/misc/ldconfig_compat/Makefile +++ b/misc/ldconfig_compat/Makefile @@ -7,7 +7,7 @@ PORTNAME= ldconfig_compat PORTVERSION= 1.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= misc MASTER_SITES= # none DISTFILES= # none @@ -22,6 +22,9 @@ USE_RC_SUBR= yes LOCAL_DIRS= ${LDCONFIG_DIR} \ ${LDCONFIG32_DIR} +SUB_LIST= LDCONFIG_DIR=${LDCONFIG_DIR} \ + LDCONFIG32_DIR=${LDCONFIG32_DIR} + .include <bsd.port.pre.mk> .include "${.CURDIR}/bsd.ldconfig.mk" @@ -48,11 +51,9 @@ do-install: @${ECHO_CMD} "@cwd ${prefix}" >> ${TMPPLIST} .for dir in ${LOCAL_DIRS} @${MKDIR} ${prefix}/${dir} - @${ECHO_CMD} "@dirrm ${dir}" >> ${TMPPLIST} + @${ECHO_CMD} "@exec mkdir %D/${dir}" >> ${TMPPLIST} + @${ECHO_CMD} "@unexec rmdir %D/${dir} 2>/dev/null || true" >> ${TMPPLIST} .endfor .endfor -post-install: - ${CAT} ${PKGMESSAGE} - .include <bsd.port.post.mk> diff --git a/misc/ldconfig_compat/files/ldconfig_compat.sh.in b/misc/ldconfig_compat/files/ldconfig_compat.sh.in index fe8abc2d2a61..8e7db265cfee 100644 --- a/misc/ldconfig_compat/files/ldconfig_compat.sh.in +++ b/misc/ldconfig_compat/files/ldconfig_compat.sh.in @@ -14,6 +14,10 @@ ldconfig_command="/sbin/ldconfig" start_cmd="ldconfig_start" stop_cmd=":" +load_rc_config $name +: ${ldconfig_local_dirs="%%PREFIX%%/%%LDCONFIG_DIR%% %%X11BASE%%/%%LDCONFIG_DIR%%"} +: ${ldconfig_local32_dirs="%%PREFIX%%/%%LDCONFIG32_DIR%% %%X11BASE%%/%%LDCONFIG32_DIR%%"} + ldconfig_start() { _ins= @@ -44,5 +48,4 @@ ldconfig_start() fi } -load_rc_config $name run_rc_command "$1" diff --git a/misc/ldconfig_compat/pkg-message b/misc/ldconfig_compat/pkg-message deleted file mode 100644 index ee91a3d810be..000000000000 --- a/misc/ldconfig_compat/pkg-message +++ /dev/null @@ -1,10 +0,0 @@ -------------------------------------------------------------- -For the script to work correctly, you need to add the -following to your /etc/rc.conf file (these lines are only -wrapped to fit console width): - - ldconfig_local_dirs="/usr/local/libdata/ldconfig - /usr/X11R6/libdata/ldconfig" - ldconfig_local32_dirs="/usr/local/libdata/ldconfig32 - /usr/X11R6/libdata/ldconfig32" -------------------------------------------------------------- |