diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2008-01-20 05:16:04 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2008-01-20 05:16:04 +0800 |
commit | ac0f80fdbf95714967d804df4a8cc6cdb83e0224 (patch) | |
tree | f1edf1fe4e1a007268181b8ba6f7e7a1b6e35bcc | |
parent | 15e071ab0d4a2fef392ee77e7abf888cc1e94f77 (diff) | |
download | marcuscom-ports-ac0f80fdbf95714967d804df4a8cc6cdb83e0224.tar marcuscom-ports-ac0f80fdbf95714967d804df4a8cc6cdb83e0224.tar.gz marcuscom-ports-ac0f80fdbf95714967d804df4a8cc6cdb83e0224.tar.bz2 marcuscom-ports-ac0f80fdbf95714967d804df4a8cc6cdb83e0224.tar.lz marcuscom-ports-ac0f80fdbf95714967d804df4a8cc6cdb83e0224.tar.xz marcuscom-ports-ac0f80fdbf95714967d804df4a8cc6cdb83e0224.tar.zst marcuscom-ports-ac0f80fdbf95714967d804df4a8cc6cdb83e0224.zip |
Fix a problem that occurred when slave support was removed, and make sure
the correct localstatedir is used.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@10168 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r-- | sysutils/hal/Makefile | 8 | ||||
-rw-r--r-- | sysutils/hal/files/pkg-install.in | 2 | ||||
-rw-r--r-- | sysutils/hal/pkg-plist | 4 |
3 files changed, 11 insertions, 3 deletions
diff --git a/sysutils/hal/Makefile b/sysutils/hal/Makefile index 0680d5344..219bd2426 100644 --- a/sysutils/hal/Makefile +++ b/sysutils/hal/Makefile @@ -3,11 +3,12 @@ # Whom: Joe Marcus Clarke <marcus@FreeBSD.org> # # $FreeBSD$ -# $MCom: ports/sysutils/hal/Makefile,v 1.28 2008/01/08 06:46:45 marcus Exp $ +# $MCom: ports/sysutils/hal/Makefile,v 1.29 2008/01/08 06:50:34 marcus Exp $ # PORTNAME= hal PORTVERSION= ${HALVERSION}.${SNAPVERSION} +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= http://www.marcuscom.com/downloads/ @@ -40,7 +41,8 @@ CONFIGURE_ARGS= --disable-gtk-doc \ --enable-console-kit \ --with-socket-dir=/var/run/hald \ --with-eject=/usr/sbin/cdcontrol \ - --with-pid-file=/var/run/hald/hald.pid + --with-pid-file=/var/run/hald/hald.pid \ + --localstatedir=/var CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" \ GTKDOC="false" @@ -104,11 +106,11 @@ post-install: ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL .if !defined(PACKAGE_BUILDING) && defined(NEEDS_MEDIA) ${MKDIR} /media +.endif .if !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/hald/freebsd/README \ ${DOCSDIR}/README.freebsd .endif -.endif .include <bsd.port.post.mk> diff --git a/sysutils/hal/files/pkg-install.in b/sysutils/hal/files/pkg-install.in index 2cfda5753..72b67ff95 100644 --- a/sysutils/hal/files/pkg-install.in +++ b/sysutils/hal/files/pkg-install.in @@ -34,6 +34,8 @@ if [ -z "${PACKAGE_BUILDING}" ]; then fi /usr/bin/install -d -o ${USER} -g ${GROUP} /var/run/hald + /usr/bin/install -d -o ${USER} -g ${GROUP} /var/cache/hald + /usr/bin/install -d -o ${USER} -g ${GROUP} /var/lib/hal fi for pair in %%RC_FILES%%; do diff --git a/sysutils/hal/pkg-plist b/sysutils/hal/pkg-plist index 75a3c60c9..eed16e41e 100644 --- a/sysutils/hal/pkg-plist +++ b/sysutils/hal/pkg-plist @@ -112,4 +112,8 @@ share/PolicyKit/policy/hal-wol.policy @unexec rm -rf /var/run/hald/hald-local 2>/dev/null || true @unexec rm -rf /var/run/hald/hald-runner 2>/dev/null || true @unexec rmdir /var/run/hald 2>/dev/null || true +@unexec rmdir /var/cache/hald 2>/dev/null || true +@unexec rmdir /var/cache 2>/dev/null || true +@unexec /var/lib/hal 2>/dev/null || true +@unexec /var/lib 2>/dev/null || true %%MEDIA%%@unexec rmdir /media 2>/dev/null || true |