summaryrefslogtreecommitdiffstats
path: root/sysutils/accountsservice
diff options
context:
space:
mode:
authorkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2013-05-09 21:15:21 +0800
committerkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2013-05-09 21:15:21 +0800
commit73a712eaabafc5bedc0042c413c9969524f0fc3e (patch)
tree4b5f76bb6c0d8122b157e9cab4f771ce1aeeca59 /sysutils/accountsservice
parented8a6ee4909ea422fbfdc1ce0f2009a8e8d1cab8 (diff)
downloadmarcuscom-ports-73a712eaabafc5bedc0042c413c9969524f0fc3e.tar
marcuscom-ports-73a712eaabafc5bedc0042c413c9969524f0fc3e.tar.gz
marcuscom-ports-73a712eaabafc5bedc0042c413c9969524f0fc3e.tar.bz2
marcuscom-ports-73a712eaabafc5bedc0042c413c9969524f0fc3e.tar.lz
marcuscom-ports-73a712eaabafc5bedc0042c413c9969524f0fc3e.tar.xz
marcuscom-ports-73a712eaabafc5bedc0042c413c9969524f0fc3e.tar.zst
marcuscom-ports-73a712eaabafc5bedc0042c413c9969524f0fc3e.zip
Make sure we create directories AccountsService uses internaly.
Reported by: Joe Maloney Tested by: Joe Maloney git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@18438 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'sysutils/accountsservice')
-rw-r--r--sysutils/accountsservice/Makefile9
-rw-r--r--sysutils/accountsservice/pkg-install9
-rw-r--r--sysutils/accountsservice/pkg-plist4
3 files changed, 20 insertions, 2 deletions
diff --git a/sysutils/accountsservice/Makefile b/sysutils/accountsservice/Makefile
index ee390c04d..ba55fb4f5 100644
--- a/sysutils/accountsservice/Makefile
+++ b/sysutils/accountsservice/Makefile
@@ -4,7 +4,7 @@
PORTNAME= accountsservice
PORTVERSION= 0.6.24
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= sysutils devel
MASTER_SITES= http://www.freedesktop.org/software/${PORTNAME}/
@@ -22,12 +22,17 @@ USES= gettext pathfix pkgconfig
USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
-CONFIGURE_ARGS= --disable-systemd
+CONFIGURE_ARGS= --disable-systemd --localstatedir=/var/
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
post-patch:
@${REINPLACE_CMD} -e 's|/etc/gdm/custom.conf|${LOCALBASE}/etc/gdm/custom.conf|g' \
${WRKSRC}/src/daemon.c
+ @${REINPLACE_CMD} -e 's|/lib/AccountsService|/db/AccountsService|g' \
+ ${WRKSRC}/src/user.c ${WRKSRC}/src/Makefile.in
+
+post-install:
+ @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.mk>
diff --git a/sysutils/accountsservice/pkg-install b/sysutils/accountsservice/pkg-install
new file mode 100644
index 000000000..65319d213
--- /dev/null
+++ b/sysutils/accountsservice/pkg-install
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+case $2 in
+POST-INSTALL)
+ /bin/mkdir -p /var/db/AccountsService/users/
+ /bin/mkdir -p /var/db/AccountsService/icons/
+ exit 0
+ ;;
+esac
diff --git a/sysutils/accountsservice/pkg-plist b/sysutils/accountsservice/pkg-plist
index 70362b744..1d40aa30b 100644
--- a/sysutils/accountsservice/pkg-plist
+++ b/sysutils/accountsservice/pkg-plist
@@ -74,3 +74,7 @@ share/polkit-1/actions/org.freedesktop.accounts.policy
@dirrmtry share/locale/bg_BG
@dirrm include/accountsservice-1.0/act
@dirrm include/accountsservice-1.0
+@cwd /
+@dirrmtry var/db/AccountsService/users
+@dirrmtry var/db/AccountsService
+@cwd