summaryrefslogtreecommitdiff
path: root/bld
diff options
context:
space:
mode:
authorJinkun Jang <jinkun.jang@samsung.com>2013-03-13 01:47:15 +0900
committerJinkun Jang <jinkun.jang@samsung.com>2013-03-13 01:47:15 +0900
commitfcd16d9cfa7ae66560b8df5b7d3e9d954bc14296 (patch)
tree3b846665d64c5f6f36010b2bdbf48ebeb9904d4e /bld
parente5a7e6adba9219ecf8bb5668382fab628f63bf6e (diff)
downloaddnsmasq-fcd16d9cfa7ae66560b8df5b7d3e9d954bc14296.tar.gz
dnsmasq-fcd16d9cfa7ae66560b8df5b7d3e9d954bc14296.tar.bz2
dnsmasq-fcd16d9cfa7ae66560b8df5b7d3e9d954bc14296.zip
Tizen 2.1 base
Diffstat (limited to 'bld')
-rw-r--r--bld/Android.mk18
-rwxr-xr-xbld/install-man9
-rwxr-xr-xbld/install-mo9
-rwxr-xr-xbld/pkg-wrapper11
4 files changed, 47 insertions, 0 deletions
diff --git a/bld/Android.mk b/bld/Android.mk
new file mode 100644
index 0000000..373a783
--- /dev/null
+++ b/bld/Android.mk
@@ -0,0 +1,18 @@
+LOCAL_PATH := external/dnsmasq/src
+
+#########################
+
+include $(CLEAR_VARS)
+LOCAL_SRC_FILES := bpf.c cache.c dbus.c dhcp.c dnsmasq.c \
+ forward.c helper.c lease.c log.c \
+ netlink.c network.c option.c rfc1035.c \
+ rfc2131.c tftp.c util.c
+
+LOCAL_MODULE := dnsmasq
+
+LOCAL_C_INCLUDES := external/dnsmasq/src
+
+LOCAL_CFLAGS := -O2 -g -W -Wall -D__ANDROID__ -DNO_IPV6 -DNO_TFTP -DNO_SCRIPT
+LOCAL_SYSTEM_SHARED_LIBRARIES := libc libcutils
+
+include $(BUILD_EXECUTABLE)
diff --git a/bld/install-man b/bld/install-man
new file mode 100755
index 0000000..f4cf3dc
--- /dev/null
+++ b/bld/install-man
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+for f in *; do
+ if [ -d $f ]; then
+ $2 -m 755 -d $1/$f/man8
+ $2 -m 644 $f/dnsmasq.8 $1/$f/man8
+ echo installing $1/$f/man8/dnsmasq.8
+ fi
+done
diff --git a/bld/install-mo b/bld/install-mo
new file mode 100755
index 0000000..d11fa9f
--- /dev/null
+++ b/bld/install-mo
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+for f in *.mo; do
+ $2 -m 755 -d $1/${f%.mo}/LC_MESSAGES
+ $2 -m 644 $f $1/${f%.mo}/LC_MESSAGES/dnsmasq.mo
+ echo installing $1/${f%.mo}/LC_MESSAGES/dnsmasq.mo
+done
+
+
diff --git a/bld/pkg-wrapper b/bld/pkg-wrapper
new file mode 100755
index 0000000..4f3b76b
--- /dev/null
+++ b/bld/pkg-wrapper
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+search=$1
+shift
+
+if grep "^\#.*define.*$search" config.h 2>&1 >/dev/null || \
+ grep $search 2>&1 >/dev/null ; then
+ exec $*
+fi
+
+