summaryrefslogtreecommitdiff
path: root/package/upower
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-01-10 17:37:30 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2014-01-10 17:37:30 +0100
commitb4d204f9fdb09a3655ae9a90ef262e253d6e59d7 (patch)
tree9195e74b2a7ff4f0403864f235a74ecb23ddac45 /package/upower
parent79963aad5902c51d47fbc779c1280060872f1a71 (diff)
add upower, polkit and dependencies
Diffstat (limited to 'package/upower')
-rw-r--r--package/upower/Makefile37
-rw-r--r--package/upower/patches/patch-Makefile_in20
2 files changed, 57 insertions, 0 deletions
diff --git a/package/upower/Makefile b/package/upower/Makefile
new file mode 100644
index 000000000..ea448a693
--- /dev/null
+++ b/package/upower/Makefile
@@ -0,0 +1,37 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= upower
+PKG_VERSION:= 0.99.0
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 14f43bc13353e23e7280863f33ac50d2
+PKG_DESCR:= powermanagement
+PKG_SECTION:= misc
+PKG_BUILDDEP:= glib dbus-glib polkit systemd
+PKG_DEPENDS:= glib dbus-glib polkit libgudev
+PKG_URL:= http://upower.freedesktop.org/
+PKG_SITES:= http://upower.freedesktop.org/releases/
+
+DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.xz
+
+include $(TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,UPOWER,upower,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+
+upower-install:
+ $(INSTALL_DIR) $(IDIR_UPOWER)/etc
+ $(CP) $(WRKINST)/etc/* \
+ $(IDIR_UPOWER)/etc
+ $(INSTALL_DIR) $(IDIR_UPOWER)/usr/lib
+ $(CP) $(WRKINST)/usr/lib/libupower*.so* \
+ $(IDIR_UPOWER)/usr/lib
+ $(INSTALL_DIR) $(IDIR_UPOWER)/usr/sbin
+ $(INSTALL_BIN) $(WRKINST)/usr/libexec/upowerd \
+ $(IDIR_UPOWER)/usr/sbin
+ $(INSTALL_DIR) $(IDIR_UPOWER)/usr/bin
+ $(INSTALL_BIN) $(WRKINST)/usr/bin/upower \
+ $(IDIR_UPOWER)/usr/bin
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/upower/patches/patch-Makefile_in b/package/upower/patches/patch-Makefile_in
new file mode 100644
index 000000000..7709ee096
--- /dev/null
+++ b/package/upower/patches/patch-Makefile_in
@@ -0,0 +1,20 @@
+--- upower-0.99.0.orig/Makefile.in 2013-10-29 11:39:06.000000000 +0100
++++ upower-0.99.0/Makefile.in 2014-01-10 17:09:06.000000000 +0100
+@@ -199,7 +199,7 @@ am__define_uniq_tagged_files = \
+ ETAGS = etags
+ CTAGS = ctags
+ CSCOPE = cscope
+-DIST_SUBDIRS = etc libupower-glib src doc tools po rules
++DIST_SUBDIRS = etc libupower-glib src tools po rules
+ DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ distdir = $(PACKAGE)-$(VERSION)
+ top_distdir = $(distdir)
+@@ -439,7 +439,7 @@ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
+ udevrulesdir = @udevrulesdir@
+ ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
+-SUBDIRS = etc libupower-glib src doc tools po $(am__append_1)
++SUBDIRS = etc libupower-glib src tools po $(am__append_1)
+ EXTRA_DIST = \
+ HACKING \
+ ChangeLog