From 73a712eaabafc5bedc0042c413c9969524f0fc3e Mon Sep 17 00:00:00 2001 From: kwm Date: Thu, 9 May 2013 13:15:21 +0000 Subject: 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 --- sysutils/accountsservice/Makefile | 9 +++++++-- sysutils/accountsservice/pkg-install | 9 +++++++++ sysutils/accountsservice/pkg-plist | 4 ++++ 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 sysutils/accountsservice/pkg-install 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 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 -- cgit v1.2.3