summaryrefslogtreecommitdiff
path: root/package/udev
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-05-30 20:39:07 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2009-05-30 20:39:07 +0200
commitba3359722cbf8aa7b0ed39e1f81d1d74ec88fecd (patch)
tree10c726d162bc0ded85eb7aeacf8f246bd39ad63a /package/udev
parentbbd610f15a71b27c955175cb98392b114717fd47 (diff)
optimize ipkg package management
- generate ipkg control file from PKG_* variables - automatically install init scripts from ./files/*.init set #PKG pkgname to set the binary package - rename FWINIT -> INIT - move postinst and conffiles meta data to ./files - update the packages to the latest upstream version - remove some unready or unused package (strongswan,..) more cleanups needed after allmodconfig
Diffstat (limited to 'package/udev')
-rw-r--r--package/udev/Makefile41
-rw-r--r--package/udev/files/udev.conffiles (renamed from package/udev/ipkg/udev.conffiles)0
-rw-r--r--package/udev/ipkg/udev.control4
-rw-r--r--package/udev/patches/01-no_debug.patch21
4 files changed, 13 insertions, 53 deletions
diff --git a/package/udev/Makefile b/package/udev/Makefile
index f9757a0f0..4a8a94800 100644
--- a/package/udev/Makefile
+++ b/package/udev/Makefile
@@ -6,43 +6,28 @@
include ${TOPDIR}/rules.mk
PKG_NAME:= udev
-PKG_VERSION:= 077
+PKG_VERSION:= 142
PKG_RELEASE:= 1
-PKG_MD5SUM:= 61ec646daf7795e9777e8f33975408fe
-
-MASTER_SITES:= ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/ \
- http://ftp.kernel.org/pub/linux/utils/kernel/hotplug/ \
- ftp://ftp.de.kernel.org/pub/linux/utils/kernel/hotplug/ \
- http://ftp.de.kernel.org/pub/linux/utils/kernel/hotplug/ \
- ftp://ftp.fr.kernel.org/pub/linux/utils/kernel/hotplug/ \
- http://ftp.fr.kernel.org/pub/linux/utils/kernel/hotplug/
+PKG_MD5SUM:= 3edc4cf383dccb06d866c5156d59ddd5
+PKG_DESCR:= Dynamic device management subsystem
+PKG_SECTION:= base
+PKG_URL:= http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html
+PKG_SITES:= ${MASTER_SITE_KERNEL:=utils/kernel/hotplug/}
+
DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
include ${TOPDIR}/mk/package.mk
-$(eval $(call PKG_template,UDEV,udev,${PKG_VERSION}-${PKG_RELEASE}))
+$(eval $(call PKG_template,UDEV,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+CONFIGURE_STYLE:= gnu
BUILD_STYLE:= auto
INSTALL_STYLE:= auto
-XAKE_FLAGS+= CROSS="${TARGET_CROSS}" \
- STRIP="/bin/true" \
- OPTFLAGS="${TARGET_CFLAGS}" \
- INSTALL="install -c"
post-install:
- ${INSTALL_DIR} ${IDIR_UDEV}/etc/udev/
- ${CP} ${WRKINST}/etc/udev/* ${IDIR_UDEV}/etc/udev/
- ${INSTALL_DIR} ${IDIR_UDEV}/lib/udev
- ${INSTALL_DIR} ${IDIR_UDEV}/sbin/
- ${CP} ${WRKINST}/sbin/udev ${IDIR_UDEV}/sbin/
- ${CP} ${WRKINST}/sbin/udevcontrol ${IDIR_UDEV}/sbin/
- ${CP} ${WRKINST}/sbin/udevd ${IDIR_UDEV}/sbin/
- ${CP} ${WRKINST}/sbin/udevsend ${IDIR_UDEV}/sbin/
- ${CP} ${WRKINST}/sbin/udevstart ${IDIR_UDEV}/sbin/
- ${INSTALL_DIR} ${IDIR_UDEV}/usr/bin/
- ${CP} ${WRKINST}/usr/bin/udevinfo ${IDIR_UDEV}/usr/bin/
- ${CP} ${WRKINST}/usr/bin/udevtest ${IDIR_UDEV}/usr/bin/
- ${INSTALL_DIR} ${IDIR_UDEV}/usr/sbin/
- ${CP} ${WRKINST}/usr/sbin/udevmonitor ${IDIR_UDEV}/usr/sbin/
+ ${INSTALL_DIR} ${IDIR_UDEV}/usr/sbin ${IDIR_UDEV}/etc/udev
+ ${CP} ${WRKINST}/etc/udev/* ${IDIR_UDEV}/etc/udev
+ ${CP} ${WRKINST}/usr/sbin/udevd ${IDIR_UDEV}/usr/sbin
+ ${CP} ${WRKINST}/usr/sbin/udevadm ${IDIR_UDEV}/usr/sbin
include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/udev/ipkg/udev.conffiles b/package/udev/files/udev.conffiles
index 50a5fb889..50a5fb889 100644
--- a/package/udev/ipkg/udev.conffiles
+++ b/package/udev/files/udev.conffiles
diff --git a/package/udev/ipkg/udev.control b/package/udev/ipkg/udev.control
deleted file mode 100644
index 7ca98a0aa..000000000
--- a/package/udev/ipkg/udev.control
+++ /dev/null
@@ -1,4 +0,0 @@
-Package: udev
-Priority: optional
-Section: base
-Description: Dynamic device management subsystem
diff --git a/package/udev/patches/01-no_debug.patch b/package/udev/patches/01-no_debug.patch
deleted file mode 100644
index dcbc1051a..000000000
--- a/package/udev/patches/01-no_debug.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-diff -ruN udev-077-old/Makefile udev-077-new/Makefile
---- udev-077-old/Makefile 2005-12-04 03:01:48.000000000 +0100
-+++ udev-077-new/Makefile 2005-12-07 16:48:11.000000000 +0100
-@@ -136,7 +136,7 @@
- # check if compiler option is supported
- cc-supports = ${shell if $(CC) ${1} -S -o /dev/null -xc /dev/null > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi;}
-
--CFLAGS = -g -Wall -pipe -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
-+CFLAGS = -Wall -pipe -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
- WARNINGS = -Wstrict-prototypes -Wsign-compare -Wshadow \
- -Wchar-subscripts -Wmissing-declarations -Wnested-externs \
- -Wpointer-arith -Wcast-align -Wsign-compare -Wmissing-prototypes
-@@ -159,7 +159,7 @@
-
- # if DEBUG is enabled, then we do not strip
- ifeq ($(strip $(DEBUG)),true)
-- CFLAGS += -DDEBUG
-+ CFLAGS += -g -DDEBUG
- STRIPCMD =
- endif
-