From b4d204f9fdb09a3655ae9a90ef262e253d6e59d7 Mon Sep 17 00:00:00 2001
From: Waldemar Brodkorb <wbx@openadk.org>
Date: Fri, 10 Jan 2014 17:37:30 +0100
Subject: add upower, polkit and dependencies

---
 package/systemd/Makefile                                | 12 ++++++++++--
 package/systemd/patches/patch-src_gudev_gudev-1_0_pc_in | 13 +++++++++++++
 2 files changed, 23 insertions(+), 2 deletions(-)
 create mode 100644 package/systemd/patches/patch-src_gudev_gudev-1_0_pc_in

(limited to 'package/systemd')

diff --git a/package/systemd/Makefile b/package/systemd/Makefile
index 7094d3a4b..11ae586ae 100644
--- a/package/systemd/Makefile
+++ b/package/systemd/Makefile
@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
 
 PKG_NAME:=		systemd
 PKG_VERSION:=		208
-PKG_RELEASE:=		2
+PKG_RELEASE:=		3
 PKG_MD5SUM:=		df64550d92afbffb4f67a434193ee165
 PKG_DESCR:=		System and Service Manager
 PKG_SECTION:=		utils
@@ -18,7 +18,9 @@ PKG_LIBNAME:=		libudev
 PKG_OPTS:=		dev
 
 PKG_LIBC_DEPENDS:=	eglibc glibc
-PKG_SUBPKGS:=		UDEV LIBUDEV
+PKG_SUBPKGS:=		UDEV LIBUDEV LIBGUDEV
+PKGSC_LIBGUDEV:=	libs
+PKGSD_LIBGUDEV:=	GUDEV library
 PKGSC_LIBUDEV:=		libs
 PKGSD_LIBUDEV:=		UDEV library
 PKGSD_UDEV:=		Dynamic device management subsystem
@@ -33,11 +35,13 @@ include ${TOPDIR}/mk/package.mk
 
 $(eval $(call PKG_template,UDEV,udev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
 $(eval $(call PKG_template,LIBUDEV,libudev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
+$(eval $(call PKG_template,LIBGUDEV,libgudev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
 
 AUTOTOOL_STYLE:=	autoreconf
 TARGET_LDFLAGS+=	-lrt
 CONFIGURE_ARGS+=	--disable-static \
 			--without-python \
+			--enable-gudev \
 			--disable-manpages \
 			--disable-polkit
 
@@ -52,4 +56,8 @@ libudev-install:
 	${INSTALL_DIR} ${IDIR_LIBUDEV}/usr/lib
 	$(CP) $(WRKINST)/usr/lib/libudev.so* $(IDIR_LIBUDEV)/usr/lib
 
+libgudev-install:
+	${INSTALL_DIR} ${IDIR_LIBGUDEV}/usr/lib
+	$(CP) $(WRKINST)/usr/lib/libgudev*.so* $(IDIR_LIBGUDEV)/usr/lib
+
 include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/systemd/patches/patch-src_gudev_gudev-1_0_pc_in b/package/systemd/patches/patch-src_gudev_gudev-1_0_pc_in
new file mode 100644
index 000000000..1758a8957
--- /dev/null
+++ b/package/systemd/patches/patch-src_gudev_gudev-1_0_pc_in
@@ -0,0 +1,13 @@
+--- systemd-208.orig/src/gudev/gudev-1.0.pc.in	2013-08-13 22:02:46.000000000 +0200
++++ systemd-208/src/gudev/gudev-1.0.pc.in	2014-01-10 16:50:37.000000000 +0100
+@@ -1,7 +1,7 @@
+ prefix=@prefix@
+-exec_prefix=@exec_prefix@
+-libdir=@libdir@
+-includedir=@includedir@
++exec_prefix=@prefix@
++libdir=${prefix}/lib
++includedir=${prefix}/include
+ 
+ Name: gudev-1.0
+ Description: GObject bindings for libudev
-- 
cgit v1.2.3