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
62f992f0
Commit
62f992f0
authored
May 11, 2014
by
Andreas Metzler
Committed by
Simon Kelley
May 11, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Debian fix: Enable dnsmasq systemd unit on install.
parent
a23949d4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
5 deletions
+44
-5
debian/changelog
debian/changelog
+8
-3
debian/control
debian/control
+4
-2
debian/postinst
debian/postinst
+16
-0
debian/postrm
debian/postrm
+16
-0
No files found.
debian/changelog
View file @
62f992f0
dnsmasq (2.70-3) unstable; urgency=
low
dnsmasq (2.70-3) unstable; urgency=
medium
* Write a pid-file, even when being started using systemd, since
* Write a pid-file, even when being started using systemd, since
other components may wish to signal dnsmasq.
other components may wish to signal dnsmasq.
* Enable dnsmasq systemd unit on install. Otherwise dnsmasq does not run on
-- Simon Kelley <simon@thekelleys.org.uk> Fri, 09 May 2014 20:45:11 +0000
fresh installations (without administrator handholding) and even worse it
is disabled on systems switching from sysv to systemd. Modify
postinst/postrm exactly as dh_systemd would, add dependency on
init-system-helpers. Closes: #724602
-- Simon Kelley <simon@thekelleys.org.uk> Sun, 11 May 2014 17:45:21 +0000
dnsmasq (2.70-2) unstable; urgency=low
dnsmasq (2.70-2) unstable; urgency=low
...
...
debian/control
View file @
62f992f0
...
@@ -2,13 +2,15 @@ Source: dnsmasq
...
@@ -2,13 +2,15 @@ Source: dnsmasq
Section: net
Section: net
Priority: optional
Priority: optional
Build-depends: gettext, libnetfilter-conntrack-dev [linux-any],
Build-depends: gettext, libnetfilter-conntrack-dev [linux-any],
libidn11-dev, libdbus-1-dev (>=0.61), libgmp-dev, nettle-dev (>=2.4-3)
libidn11-dev, libdbus-1-dev (>=0.61), libgmp-dev,
nettle-dev (>=2.4-3)
Maintainer: Simon Kelley <simon@thekelleys.org.uk>
Maintainer: Simon Kelley <simon@thekelleys.org.uk>
Standards-Version: 3.9.3
Standards-Version: 3.9.3
Package: dnsmasq
Package: dnsmasq
Architecture: all
Architecture: all
Depends: netbase, dnsmasq-base(>= ${binary:Version})
Depends: netbase, dnsmasq-base(>= ${binary:Version}),
init-system-helpers (>= 1.18~)
Suggests: resolvconf
Suggests: resolvconf
Conflicts: resolvconf (<<1.15)
Conflicts: resolvconf (<<1.15)
Description: Small caching DNS proxy and DHCP/TFTP server
Description: Small caching DNS proxy and DHCP/TFTP server
...
...
debian/postinst
View file @
62f992f0
#!/bin/sh
#!/bin/sh
set
-e
set
-e
# Code copied from dh_systemd_enable ----------------------
# This will only remove masks created by d-s-h on package removal.
deb-systemd-helper unmask dnsmasq.service
>
/dev/null
||
true
# was-enabled defaults to true, so new installations run enable.
if
deb-systemd-helper
--quiet
was-enabled dnsmasq.service
;
then
# Enables the unit on first installation, creates new
# symlinks on upgrades if the unit file has changed.
deb-systemd-helper
enable
dnsmasq.service
>
/dev/null
||
true
else
# Update the statefile to add new symlinks (if any), which need to be
# cleaned up on purge. Also remove old symlinks.
deb-systemd-helper update-state dnsmasq.service
>
/dev/null
||
true
fi
# End code copied from dh_systemd_enable ------------------
if
[
-x
/etc/init.d/dnsmasq
]
;
then
if
[
-x
/etc/init.d/dnsmasq
]
;
then
update-rc.d dnsmasq defaults 15 85
>
/dev/null
update-rc.d dnsmasq defaults 15 85
>
/dev/null
...
...
debian/postrm
View file @
62f992f0
...
@@ -4,3 +4,19 @@ set -e
...
@@ -4,3 +4,19 @@ set -e
if
[
purge
=
"
$1
"
]
;
then
if
[
purge
=
"
$1
"
]
;
then
update-rc.d dnsmasq remove
>
/dev/null
update-rc.d dnsmasq remove
>
/dev/null
fi
fi
# Code copied from dh_systemd_enable ----------------------
if
[
"
$1
"
=
"remove"
]
;
then
if
[
-x
"/usr/bin/deb-systemd-helper"
]
;
then
deb-systemd-helper mask dnsmasq.service
>
/dev/null
fi
fi
if
[
"
$1
"
=
"purge"
]
;
then
if
[
-x
"/usr/bin/deb-systemd-helper"
]
;
then
deb-systemd-helper purge dnsmasq.service
>
/dev/null
deb-systemd-helper unmask dnsmasq.service
>
/dev/null
fi
fi
# End code copied from dh_systemd_enable ------------------
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