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
bc54ae39
Commit
bc54ae39
authored
Aug 28, 2012
by
Simon Kelley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Debian packaging fixes.
parent
00acd063
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
50 additions
and
36 deletions
+50
-36
debian/changelog
debian/changelog
+11
-1
debian/control
debian/control
+2
-2
debian/dnsmasq-base.postinst
debian/dnsmasq-base.postinst
+24
-0
debian/dnsmasq-base.postrm
debian/dnsmasq-base.postrm
+11
-0
debian/postinst
debian/postinst
+0
-27
debian/postrm
debian/postrm
+0
-6
debian/rules
debian/rules
+2
-0
No files found.
debian/changelog
View file @
bc54ae39
...
...
@@ -2,7 +2,17 @@ dnsmasq (2.64-1) unstable; urgency=low
* New upstream.
-- Simon Kelley <simon@thekelleys.org.uk> Fri, 17 Aug 2012 13:45:15 +0000
-- Simon Kelley <simon@thekelleys.org.uk> Tue, 28 Aug 2012 16:19:15 +0000
dnsmasq (2.63-2) unstable; urgency=low
* Fix version script to report correct version.
* Unbotch move of dbus config file by using correct versions in
Replaces: and Breaks: lines. (closes: #685204)
* Create dnsmasq user in dnsmasq-base so that Dbus doesn't complain if
only dnsmasq-base is installed. (closes: #685987)
-- Simon Kelley <simon@thekelleys.org.uk> Tue, 28 Aug 2012 16:18:35 +0000
dnsmasq (2.63-1) unstable; urgency=low
...
...
debian/control
View file @
bc54ae39
...
...
@@ -23,8 +23,8 @@ Description: Small caching DNS proxy and DHCP/TFTP server
Package: dnsmasq-base
Architecture: any
Depends: ${shlibs:Depends}
Breaks: dnsmasq (<< 2.6
2-3
)
Replaces: dnsmasq (<< 2.6
2-3
)
Breaks: dnsmasq (<< 2.6
3-1~
)
Replaces: dnsmasq (<< 2.6
3-1~
)
Description: Small caching DNS proxy and DHCP/TFTP server
This package contains the dnsmasq executable and documentation, but
not the infrastructure required to run it as a system daemon. For
...
...
debian/dnsmasq-base.postinst
0 → 100644
View file @
bc54ae39
#!/bin/sh
set
-e
# Create the dnsmasq user in dnsmasq-base, so that Dbus doesn't complain.
# create a user to run as (code stolen from dovecot-common)
if
[
"
$1
"
=
"configure"
]
;
then
if
[
-z
"
`
id
-u
dnsmasq 2> /dev/null
`
"
]
;
then
adduser
--system
--home
/var/lib/misc
--gecos
"dnsmasq"
\
--no-create-home
--disabled-password
\
--quiet
dnsmasq
||
true
fi
# Make the directory where we keep the pid file - this
# has to be owned by "dnsmasq" so that the file can be unlinked.
# This is only actually used by the dnsmasq binary package, not
# dnsmasq-base, but it's much easier to create it here so that
# we don't have synchronisation issues with the creation of the
# dnsmasq user.
if
[
!
-d
/var/run/dnsmasq
]
;
then
mkdir
/var/run/dnsmasq
chown
dnsmasq:nogroup /var/run/dnsmasq
fi
fi
debian/dnsmasq-base.postrm
0 → 100644
View file @
bc54ae39
#!/bin/sh
set
-e
if
[
purge
=
"
$1
"
]
;
then
if
[
-x
"
$(
command
-v
deluser
)
"
]
;
then
deluser
--quiet
--system
dnsmasq
>
/dev/null
||
true
else
echo
>
&2
"not removing dnsmasq system account because deluser command was not found"
fi
rm
-rf
/var/run/dnsmasq
fi
debian/postinst
View file @
bc54ae39
#!/bin/sh
set
-e
# create a user to run as (code stolen from dovecot-common)
if
[
"
$1
"
=
"configure"
]
;
then
if
[
-z
"
`
id
-u
dnsmasq 2> /dev/null
`
"
]
;
then
adduser
--system
--home
/var/lib/misc
--gecos
"dnsmasq"
\
--no-create-home
--disabled-password
\
--quiet
dnsmasq
||
true
fi
# Make the directory where we keep the pid file - this
# has to be owned by "dnsmasq" do that the file can be unlinked.
if
[
!
-d
/var/run/dnsmasq
]
;
then
mkdir
/var/run/dnsmasq
chown
dnsmasq:nogroup /var/run/dnsmasq
fi
# handle new location of pidfile during an upgrade
if
[
-e
/var/run/dnsmasq.pid
]
;
then
mv
/var/run/dnsmasq.pid /var/run/dnsmasq
fi
fi
if
[
-x
/etc/init.d/dnsmasq
]
;
then
update-rc.d dnsmasq defaults 15 85
>
/dev/null
...
...
@@ -40,10 +19,4 @@ if [ -x /etc/init.d/dnsmasq ]; then
fi
fi
# dpkg can botch the change of /usr/share/doc/dnsmasq from
# directory to symlink. Fix up here.
if
[
!
-h
/usr/share/doc/dnsmasq
]
&&
{
rmdir
/usr/share/doc/dnsmasq
;
}
;
then
cd
/usr/share/doc/
ln
-s
/usr/share/doc/dnsmasq-base dnsmasq
fi
debian/postrm
View file @
bc54ae39
...
...
@@ -3,10 +3,4 @@ set -e
if
[
purge
=
"
$1
"
]
;
then
update-rc.d dnsmasq remove
>
/dev/null
if
[
-x
"
$(
command
-v
deluser
)
"
]
;
then
deluser
--quiet
--system
dnsmasq
>
/dev/null
||
true
else
echo
>
&2
"not removing dnsmasq system account because deluser command was not found"
fi
rm
-rf
/var/run/dnsmasq
fi
debian/rules
View file @
bc54ae39
...
...
@@ -129,6 +129,8 @@ ifeq (,$(findstring nodocs,$(DEB_BUILD_OPTIONS)))
gzip -9 debian/base/usr/share/doc/$(package)/DBus-interface
endif
install -m 644 debian/dnsmasq-base.conffiles debian/base/DEBIAN/conffiles
install -m 755 debian/dnsmasq-base.postinst debian/base/DEBIAN/postinst
install -m 755 debian/dnsmasq-base.postrm debian/base/DEBIAN/postrm
install -m 644 debian/changelog debian/base/usr/share/doc/$(package)/changelog.Debian
gzip -9 debian/base/usr/share/doc/$(package)/changelog.Debian
install -m 644 debian/readme debian/base/usr/share/doc/$(package)/README.Debian
...
...
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