FOREACH(flag ${pkgs_CFLAGS})
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
+SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -fvisibility=hidden")
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIE")
SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
SET(CMAKE_C_FLAGS_RELEASE "-O2")
+SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -pie")
ADD_DEFINITIONS("-DVENDOR=\"${VENDOR}\"")
ADD_DEFINITIONS("-DPACKAGE=\"${PACKAGE}\"")
<allow send_destination="uk.org.thekelleys.dnsmasq"/>
</policy>
<policy context="default">
- <check send_destination="uk.org.thekelleys.dnsmasq"
- send_interface="uk.org.thekelleys.dnsmasq" send_member="SetServers"
- privilege="http://tizen.org/privilege/network.set"/>
-
- <check send_destination="uk.org.thekelleys.dnsmasq"
- send_interface="uk.org.thekelleys.dnsmasq" send_member="ClearCache"
- privilege="http://tizen.org/privilege/network.set"/>
-
- <allow send_destination="uk.org.thekelleys.dnsmasq"
- send_interface="uk.org.thekelleys.dnsmasq" send_member="GetVersion"/>
+ <deny own="uk.org.thekelleys.dnsmasq"/>
+ <deny send_destination="uk.org.thekelleys.dnsmasq"/>
</policy>
</busconfig>
+++ /dev/null
-dnsmasq (2.57-slp2+3) unstable; urgency=low
-
- * Enable dbus feature
- * Git: 165.213.180.234:/slp/pkgs/d/dnsmasq
- * Tag: dnsmasq_2.57-slp2+3
-
- -- Byeongho Shim <bh.shim@samsung.com> Mon, 07 Nov 2011 21:26:30 +0900
-
-dnsmasq (2.57-slp2+2) unstable; urgency=low
-
- * Change the section on control file
- * Git: 165.213.180.234:/slp/pkgs/d/dnsmasq
- * Tag: dnsmasq_2.57-slp2+2
-
- -- Byeongho Shim <bh.shim@samsung.com> Tue, 30 Aug 2011 09:59:52 +0900
-
-dnsmasq (2.57-slp2+1) unstable; urgency=low
-
- * Initial Release.
- * Git: 165.213.180.234:/slp/pkgs/d/dnsmasq
- * Tag: dnsmasq_2.57-slp2+1
-
- -- Byeongho Shim <bh.shim@samsung.com> Tue, 16 Aug 2011 16:43:13 +0900
+++ /dev/null
-Source: dnsmasq
-Section: base
-Priority: extra
-Maintainer: Seungyoun Ju <sy39.ju@samsung.com>, Hocheol Seo <hocheol.seo@samsung.com>
-Build-Depends: debhelper (>= 5), libdbus-1-dev
-Standards-Version: 3.7.2
-
-Package: dnsmasq
-Section: base
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
-Description: Dnsmasq is a lightweight, easy to configure DNS forwarder
- and DHCP server.
-
-Package: dnsmasq-dbg
-Section: debug
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, dnsmasq (= ${Source-Version})
-Description: Dnsmasq is a lightweight, easy to configure DNS forwarder
- and DHCP server.
+++ /dev/null
-@PREFIX@/bin/*
+++ /dev/null
-#!/usr/bin/make -f
-# -*- makefile -*-
-# Sample debian/rules that uses debhelper.
-# This file was originally written by Joey Hess and Craig Small.
-# As a special exception, when this file is copied by dh-make into a
-# dh-make output file, you may use that output file without restriction.
-# This special exception was added by Craig Small in version 0.37 of dh-make.
-
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-
-CFLAGS ?= -Wall -g
-CXXFLAGS ?= -Wall -g
-LDFLAGS ?=
-PREFIX ?= /usr
-DATADIR ?= /opt
-
-CFLAGS += -fPIE
-CXXFLAGS += -fPIE
-
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
- CFLAGS += -O0
- CXXFLAGS += -O0
-else
- CFLAGS += -O2
- CXXFLAGS += -O2
-endif
-
-LDFLAGS += -Wl,--rpath=$(PREFIX)/lib -Wl,--hash-style=both -Wl,--as-needed -pie
-
-CMAKE_BUILD_DIR ?= $(CURDIR)/cmake_build_tmp
-
-configure: configure-stamp
-configure-stamp:
- dh_testdir
- mkdir -p $(CMAKE_BUILD_DIR) && cd $(CMAKE_BUILD_DIR) && \
- CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" cmake .. -DCMAKE_INSTALL_PREFIX=$(PREFIX)
-
- touch configure-stamp
-
-build: build-stamp
-
-build-stamp: configure-stamp
- dh_testdir
-
- cd $(CMAKE_BUILD_DIR) && $(MAKE)
-
- #docbook-to-man debian/wavplayer.sgml > wavplayer.1
-
- for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
- cat $$f > $${f%.in}; \
- sed -i -e "s#@PREFIX@#$(PREFIX)#g" $${f%.in}; \
- sed -i -e "s#@DATADIR@#$(DATADIR)#g" $${f%.in}; \
- done
-
-
- touch $@
-
-clean:
- dh_testdir
- dh_testroot
- rm -f build-stamp configure-stamp
-
- rm -rf $(CMAKE_BUILD_DIR)
-
- for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
- rm -f $${f%.in}; \
- done
-
- dh_clean
-
-install: build
- dh_testdir
- dh_testroot
- dh_clean -k
- dh_installdirs
-
- # Add here commands to install the package into debian/wavplayer.
- cd $(CMAKE_BUILD_DIR) && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
-
-
-# Build architecture-independent files here.
-binary-indep: build install
-# We have nothing to do by default.
-
-# Build architecture-dependent files here.
-binary-arch: build install
- dh_testdir
- dh_testroot
-# dh_installchangelogs
-# dh_installdocs
-# dh_installexamples
- dh_install --sourcedir=debian/tmp
-# dh_installmenu
-# dh_installdebconf
-# dh_installlogrotate
-# dh_installemacsen
-# dh_installpam
-# dh_installmime
-# dh_python
-# dh_installinit
-# dh_installcron
-# dh_installinfo
-# dh_installman
- dh_link
- dh_strip --dbg-package=dnsmasq-dbg
- dh_compress
- dh_fixperms
-# dh_perl
- dh_makeshlibs
- dh_installdeb
- dh_shlibdeps
- dh_gencontrol
- dh_md5sums
- dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure
+++ /dev/null
-3.0 (native)
-Name: dnsmasq
-Summary: A lightweight DNS forwarder and DHCP server
-Version: 2.57.1
-Release: 0
-Group: Network & Connectivity/Data Network
-License: GPL-2.0
-Source0: %{name}-%{version}.tar.gz
-Source1001: dnsmasq.manifest
-BuildRequires: cmake
-BuildRequires: pkgconfig(dbus-1)
+Name: dnsmasq
+Summary: dnsmasq, DNS forwarder.
+Version: 2.57.1
+Release: 7
+Group: System/Network
+License: GPL-2.0+ or GPL-3.0+
+Source0: %{name}-%{version}.tar.gz
+Source1001: packaging/dnsmasq.manifest
+BuildRequires: cmake
+BuildRequires: pkgconfig(dbus-1)
%description
Dnsmasq is a lightweight, easy to configure DNS forwarder and DHCP server.
%make_install
mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d
cp dbus/dnsmasq.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/dnsmasq.conf
+mkdir -p %{buildroot}/usr/share/license
+cp COPYING %{buildroot}/usr/share/license/dnsmasq
%files
%manifest %{name}.manifest
%{_bindir}/dnsmasq
+/usr/share/license/dnsmasq
%attr(644,root,root) %{_sysconfdir}/dbus-1/system.d/*
unsigned char pxe_uuid[17];
unsigned char *oui = NULL, *serial = NULL, *class = NULL;
- static time_t old_time = 0;
-
subnet_addr.s_addr = override.s_addr = 0;
/* set tag with name == interface */
override = lease->override;
log_packet("DHCPACK", &mess->yiaddr, emac, emac_len, iface_name, hostname, mess->xid);
- if (difftime(now, old_time) > 7)
- emit_dbus_signal(ACTION_CONNECT, lease, hostname);
- old_time = now;
+ emit_dbus_signal(ACTION_CONNECT, lease, hostname);
clear_packet(mess, end);
option_put(mess, end, OPTION_MESSAGE_TYPE, 1, DHCPACK);