Merge some small changes from my old ConsoleKit port:

- better HOMEPAGE
- add gettext MODULES
- tweak some CONFIGURE_ARGS and put pid file under /var/run so we don't
need to create a special directory for it
- don't create PREFIX/var/...
- add a /var/log/ConsoleKit/ @sample directory
This commit is contained in:
ajacoutot 2009-06-07 07:49:44 +00:00
parent 24b1c104de
commit b39afbcb71
3 changed files with 26 additions and 17 deletions

View File

@ -1,15 +1,15 @@
# $OpenBSD: Makefile,v 1.1.1.1 2009/06/07 02:55:19 robert Exp $
# $OpenBSD: Makefile,v 1.2 2009/06/07 07:49:44 ajacoutot Exp $
COMMENT= Framework for defining and tracking users
DISTNAME= ConsoleKit-0.3.0
PKGNAME= ${DISTNAME:L}
PKGNAME= ${DISTNAME:L}p0
CATEGORIES= sysutils
EXTRACT_SUFX= .tar.bz2
SHARED_LIBS+= ck-connector 0.0
HOMEPAGE= http://cgit.freedesktop.org/ConsoleKit/
HOMEPAGE= http://freedesktop.org/wiki/Software/ConsoleKit
# GPLv2+
PERMIT_DISTFILES_CDROM= Yes
@ -21,21 +21,26 @@ WANTLIB= c
MASTER_SITES= http://people.freedesktop.org/~mccann/dist/
MODULES= devel/gettext
AUTOCONF_VERSION= 2.61
CONFIGURE_STYLE= autoconf
CONFIGURE_ARGS= --with-authfw=bsdauth \
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
--localstatedir=/var \
--with-pid-file=/var/run/consolekit.pid \
--with-authfw=bsdauth \
--with-os-type=openbsd
CONFIGURE_ENV= CFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include"
USE_LIBTOOL= Yes
USE_GMAKE= Yes
FAKE_FLAGS= DBUS_SYS_DIR=${TRUEPREFIX}/share/examples/consolekit/dbus-1 \
sysconfdir=${TRUEPREFIX}/share/examples/consolekit
FAKE_FLAGS= DBUS_SYS_DIR=${TRUEPREFIX}/share/examples/consolekit/dbus-1 \
sysconfdir=${TRUEPREFIX}/share/examples/consolekit
pre-patch:
@cd ${WRKSRC}/tools && \
cp -R freebsd openbsd && \
perl -pi -e "s,freebsd,openbsd,g" openbsd/Makefile.in
cp -R freebsd openbsd && \
perl -pi -e "s,freebsd,openbsd,g" openbsd/Makefile.in
.include <bsd.port.mk>

View File

@ -1,6 +1,6 @@
$OpenBSD: patch-src_Makefile_in,v 1.1.1.1 2009/06/07 02:55:19 robert Exp $
$OpenBSD: patch-src_Makefile_in,v 1.2 2009/06/07 07:49:44 ajacoutot Exp $
--- src/Makefile.in.orig Thu Jul 31 02:41:10 2008
+++ src/Makefile.in Sun May 31 00:06:37 2009
+++ src/Makefile.in Sun Jun 7 09:34:50 2009
@@ -46,6 +46,10 @@ host_triplet = @host@
@CK_COMPILE_FREEBSD_TRUE@ ck-sysdeps-freebsd.c \
@CK_COMPILE_FREEBSD_TRUE@ $(NULL)
@ -52,3 +52,12 @@ $OpenBSD: patch-src_Makefile_in,v 1.1.1.1 2009/06/07 02:55:19 robert Exp $
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ck-sysdeps-linux.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ck-sysdeps-solaris.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ck-sysdeps-unix.Plo@am__quote@
@@ -933,8 +944,6 @@ ck-marshal.h: ck-marshal.list
install-data-local:
-mkdir -p $(DESTDIR)$(sysconfdir)/ConsoleKit/run-session.d
-mkdir -p $(DESTDIR)$(prefix)/lib/ConsoleKit/run-session.d
- -mkdir -p $(DESTDIR)$(localstatedir)/run/ConsoleKit
- -mkdir -p $(DESTDIR)$(localstatedir)/log/ConsoleKit
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/06/07 02:55:19 robert Exp $
@comment $OpenBSD: PLIST,v 1.2 2009/06/07 07:49:44 ajacoutot Exp $
%%SHARED%%
@bin bin/ck-history
@bin bin/ck-launch-session
@ -42,9 +42,4 @@ share/examples/consolekit/dbus-1/
@sample ${SYSCONFDIR}/dbus-1/
share/examples/consolekit/dbus-1/ConsoleKit.conf
@sample ${SYSCONFDIR}/dbus-1/system.d/ConsoleKit.conf
var/
var/log/
var/log/ConsoleKit/
var/run/
var/run/ConsoleKit/
@exec ${PREFIX}/bin/dbus-uuidgen --ensure
@sample /var/log/ConsoleKit/