[oe-commits] org.oe.dev dhcdbd: Add 1.14 by Milan Plzik
florian commit
openembedded-commits at lists.openembedded.org
Thu Aug 24 16:36:01 UTC 2006
dhcdbd: Add 1.14 by Milan Plzik
Author: florian at openembedded.org
Branch: org.openembedded.dev
Revision: 0c62f25e84f8a78969b680d2d89b88b32c540d8a
ViewMTN: http://monotone.openembedded.org/revision.psp?id=0c62f25e84f8a78969b680d2d89b88b32c540d8a
Files:
1
packages/dhcdbd
packages/dhcdbd/files
packages/dhcdbd/dhcdbd_1.14.bb
packages/dhcdbd/files/dhcdbd
packages/dhcdbd/files/dhcdbd-1.14-pkgconfig_dbus.patch
mtn:execute
true
Diffs:
#
# mt diff -rb504719895a62a8253bc6fcc3897e066ee11d891 -r0c62f25e84f8a78969b680d2d89b88b32c540d8a
#
#
#
# add_dir "packages/dhcdbd"
#
# add_dir "packages/dhcdbd/files"
#
# add_file "packages/dhcdbd/dhcdbd_1.14.bb"
# content [b1983f73a5d02170ea1bc1f8be7b9e9d9232b5fe]
#
# add_file "packages/dhcdbd/files/dhcdbd"
# content [8ff42ee661c7607fd92bd9de299d73fda14b90f8]
#
# add_file "packages/dhcdbd/files/dhcdbd-1.14-pkgconfig_dbus.patch"
# content [7519e148c4daf0c5513e9d089aa2e454997147a7]
#
# set "packages/dhcdbd/files/dhcdbd"
# attr "mtn:execute"
# value "true"
#
============================================================
--- packages/dhcdbd/dhcdbd_1.14.bb b1983f73a5d02170ea1bc1f8be7b9e9d9232b5fe
+++ packages/dhcdbd/dhcdbd_1.14.bb b1983f73a5d02170ea1bc1f8be7b9e9d9232b5fe
@@ -0,0 +1,26 @@
+DESCRIPTION="DBus-enabled dhcp client"
+SECTION="net"
+LICENSE="GPL"
+HOMEPAGE="http://people.redhat.com/jvdias/dhcdbd/"
+MAINTAINER="Milan Plzik <mmp at handhelds.org>"
+
+DEPENDS = "dbus"
+
+SRC_URI="http://people.redhat.com/jvdias/dhcdbd/dhcdbd-${PV}.tar.gz \
+ file://dhcdbd-1.14-pkgconfig_dbus.patch;patch=1\
+ file://dhcdbd"
+
+do_configure() {
+}
+
+do_compile() {
+ CC=${TARGET_SYS}-gcc DESTDIR=${prefix} make
+}
+
+do_install() {
+ DESTDIR=${D} make install
+ install -d ${D}/etc/init.d
+ install -m 0755 ${WORKDIR}/dhcdbd ${D}/etc/init.d/
+}
+
+FILES_${PN}="${sysconfdir} ${datadir}/dbus-1 ${base_sbindir}"
============================================================
--- packages/dhcdbd/files/dhcdbd 8ff42ee661c7607fd92bd9de299d73fda14b90f8
+++ packages/dhcdbd/files/dhcdbd 8ff42ee661c7607fd92bd9de299d73fda14b90f8
@@ -0,0 +1,28 @@
+#!/bin/sh
+#
+# DHCDBD startup script
+
+. /etc/profile
+
+case $1 in
+ 'start')
+ echo -n "Starting dhcdbd daemon: dhcdbd"
+ /sbin/dhcdbd --system
+ echo "."
+ ;;
+
+ 'stop')
+ echo -n "Stopping dhcdbd: dhcdbd"
+ killall `ps |grep /sbin/dhcdbd | grep -v grep | cut "-d " -f2`
+ echo "."
+ ;;
+
+ 'restart')
+ $0 stop
+ $0 start
+ ;;
+
+ *)
+ echo "Usage: $0 { start | stop | restart }"
+ ;;
+esac
============================================================
--- packages/dhcdbd/files/dhcdbd-1.14-pkgconfig_dbus.patch 7519e148c4daf0c5513e9d089aa2e454997147a7
+++ packages/dhcdbd/files/dhcdbd-1.14-pkgconfig_dbus.patch 7519e148c4daf0c5513e9d089aa2e454997147a7
@@ -0,0 +1,26 @@
+diff -Naur dhcdbd-1.14/Makefile dhcdbd-1.14-mod/Makefile
+--- dhcdbd-1.14/Makefile 2006-01-17 22:23:51.000000000 +0100
++++ dhcdbd-1.14-mod/Makefile 2006-08-02 18:02:42.000000000 +0200
+@@ -7,8 +7,8 @@
+ LDFLAGS ?= -g
+ DESTDIR ?= /
+ LIBDIR ?= lib
+-DBUS_INCLUDES ?= -I/usr/$(LIBDIR)/dbus-1.0/include -I/usr/include/dbus-1.0
+-DBUS_LIBS ?= -ldbus-1
++DBUS_INCLUDES ?= `pkg-config dbus-1 --cflags`
++DBUS_LIBS ?= `pkg-config dbus-1 --libs`
+ OBJS = dbus_service.o dhcdbd.o dhcp_options.o main.o
+ SRCS = dbus_service.c dhcdbd.c dhcp_options.c main.c
+ INCS = dbus_service.h dhcdbd.h dhcp_options.h includes.h
+diff -Naur dhcdbd-1.14/tests/Makefile dhcdbd-1.14-mod/tests/Makefile
+--- dhcdbd-1.14/tests/Makefile 2006-01-17 22:23:51.000000000 +0100
++++ dhcdbd-1.14-mod/tests/Makefile 2006-08-02 18:11:43.000000000 +0200
+@@ -2,7 +2,7 @@
+ LD = ${CC}
+ CFLAGS ?= -g -Wall
+ LDFLAGS ?= -g
+-DBUS_LIBS ?= -ldbus-1
++DBUS_LIBS ?= `pkg-config dbus-1 --libs`
+
+ all: test_dhcp_options test_dhcdbd_state test_subscriber test_subscriber_dbus test_prospective_subscriber
+
More information about the Openembedded-commits
mailing list