Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
Dnsmasq
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Dnsmasq
Commits
8f6213cc
Commit
8f6213cc
authored
Jan 28, 2014
by
Simon Kelley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow use of COPTS in Debian rules invokation for nefarious purposes.
parent
00ec693d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
debian/rules
debian/rules
+15
-15
No files found.
debian/rules
View file @
8f6213cc
...
@@ -17,7 +17,7 @@ CFLAGS += -Wall -W
...
@@ -17,7 +17,7 @@ CFLAGS += -Wall -W
LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS)
LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS)
COPTS =
DEB_COPTS = $(COPTS)
TARGET = install-i18n
TARGET = install-i18n
...
@@ -29,56 +29,56 @@ ifneq (,$(filter gitversion,$(DEB_BUILD_OPTIONS)))
...
@@ -29,56 +29,56 @@ ifneq (,$(filter gitversion,$(DEB_BUILD_OPTIONS)))
endif
endif
ifeq (,$(filter nodbus,$(DEB_BUILD_OPTIONS)))
ifeq (,$(filter nodbus,$(DEB_BUILD_OPTIONS)))
COPTS += -DHAVE_DBUS
DEB_
COPTS += -DHAVE_DBUS
endif
endif
ifeq (,$(filter noconntrack,$(DEB_BUILD_OPTIONS)))
ifeq (,$(filter noconntrack,$(DEB_BUILD_OPTIONS)))
ifeq ($(DEB_BUILD_ARCH_OS),linux)
ifeq ($(DEB_BUILD_ARCH_OS),linux)
COPTS += -DHAVE_CONNTRACK
DEB_
COPTS += -DHAVE_CONNTRACK
endif
endif
endif
endif
ifneq (,$(filter noipset,$(DEB_BUILD_OPTIONS)))
ifneq (,$(filter noipset,$(DEB_BUILD_OPTIONS)))
COPTS += -DNO_IPSET
DEB_
COPTS += -DNO_IPSET
endif
endif
ifneq (,$(filter nodhcp6,$(DEB_BUILD_OPTIONS)))
ifneq (,$(filter nodhcp6,$(DEB_BUILD_OPTIONS)))
COPTS += -DNO_DHCP6
DEB_
COPTS += -DNO_DHCP6
endif
endif
ifneq (,$(filter noipv6,$(DEB_BUILD_OPTIONS)))
ifneq (,$(filter noipv6,$(DEB_BUILD_OPTIONS)))
COPTS += -DNO_IPV6
DEB_
COPTS += -DNO_IPV6
endif
endif
ifneq (,$(filter notftp,$(DEB_BUILD_OPTIONS)))
ifneq (,$(filter notftp,$(DEB_BUILD_OPTIONS)))
COPTS += -DNO_TFTP
DEB_
COPTS += -DNO_TFTP
endif
endif
ifneq (,$(filter nodhcp,$(DEB_BUILD_OPTIONS)))
ifneq (,$(filter nodhcp,$(DEB_BUILD_OPTIONS)))
COPTS += -DNO_DHCP
DEB_
COPTS += -DNO_DHCP
endif
endif
ifneq (,$(filter noscript,$(DEB_BUILD_OPTIONS)))
ifneq (,$(filter noscript,$(DEB_BUILD_OPTIONS)))
COPTS += -DNO_SCRIPT
DEB_
COPTS += -DNO_SCRIPT
endif
endif
ifneq (,$(filter nortc,$(DEB_BUILD_OPTIONS)))
ifneq (,$(filter nortc,$(DEB_BUILD_OPTIONS)))
COPTS += -DHAVE_BROKEN_RTC
DEB_
COPTS += -DHAVE_BROKEN_RTC
endif
endif
ifneq (,$(filter noi18n,$(DEB_BUILD_OPTIONS)))
ifneq (,$(filter noi18n,$(DEB_BUILD_OPTIONS)))
TARGET = install
TARGET = install
ifeq (,$(filter noidn, $(DEB_BUILD_OPTIONS)))
ifeq (,$(filter noidn, $(DEB_BUILD_OPTIONS)))
COPTS += -DHAVE_IDN
DEB_
COPTS += -DHAVE_IDN
endif
endif
endif
endif
ifneq (,$(filter uselua,$(DEB_BUILD_OPTIONS)))
ifneq (,$(filter uselua,$(DEB_BUILD_OPTIONS)))
COPTS += -DHAVE_LUASCRIPT
DEB_
COPTS += -DHAVE_LUASCRIPT
endif
endif
ifneq (,$(filter usednssec,$(DEB_BUILD_OPTIONS)))
ifneq (,$(filter usednssec,$(DEB_BUILD_OPTIONS)))
COPTS += -DHAVE_DNSSEC
DEB_
COPTS += -DHAVE_DNSSEC
endif
endif
clean:
clean:
...
@@ -127,7 +127,7 @@ binary-arch: checkroot
...
@@ -127,7 +127,7 @@ binary-arch: checkroot
-d debian/base/usr/share/doc/$(package)/examples \
-d debian/base/usr/share/doc/$(package)/examples \
-d debian/base/var/run \
-d debian/base/var/run \
-d debian/base/var/lib/misc
-d debian/base/var/lib/misc
make $(TARGET) PREFIX=/usr DESTDIR=`pwd`/debian/base CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" COPTS="$(COPTS)" CC=gcc
make $(TARGET) PREFIX=/usr DESTDIR=`pwd`/debian/base CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" COPTS="$(
DEB_
COPTS)" CC=gcc
ifeq (,$(findstring nodocs,$(DEB_BUILD_OPTIONS)))
ifeq (,$(findstring nodocs,$(DEB_BUILD_OPTIONS)))
install -m 644 doc.html debian/base/usr/share/doc/$(package)/.
install -m 644 doc.html debian/base/usr/share/doc/$(package)/.
install -m 644 setup.html debian/base/usr/share/doc/$(package)/.
install -m 644 setup.html debian/base/usr/share/doc/$(package)/.
...
@@ -171,7 +171,7 @@ ifeq ($(DEB_BUILD_ARCH_OS),linux)
...
@@ -171,7 +171,7 @@ ifeq ($(DEB_BUILD_ARCH_OS),linux)
-d debian/utils/usr/share/man/man1 \
-d debian/utils/usr/share/man/man1 \
-d debian/utils/usr/bin \
-d debian/utils/usr/bin \
-d debian/utils/usr/share/doc/dnsmasq-utils
-d debian/utils/usr/share/doc/dnsmasq-utils
make -C contrib/wrt PREFIX=/usr DESTDIR=`pwd`/debian/utils CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" COPTS="$(COPTS)" CC=gcc
make -C contrib/wrt PREFIX=/usr DESTDIR=`pwd`/debian/utils CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" COPTS="$(
DEB_
COPTS)" CC=gcc
install -m 755 contrib/wrt/dhcp_release debian/utils/usr/bin/dhcp_release
install -m 755 contrib/wrt/dhcp_release debian/utils/usr/bin/dhcp_release
install -m 644 contrib/wrt/dhcp_release.1 debian/utils/usr/share/man/man1/dhcp_release.1
install -m 644 contrib/wrt/dhcp_release.1 debian/utils/usr/share/man/man1/dhcp_release.1
gzip -9 debian/utils/usr/share/man/man1/dhcp_release.1
gzip -9 debian/utils/usr/share/man/man1/dhcp_release.1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment