[debian-edu-commits] debian-edu/pkg-team/ 01/01: Modify revert-broken-zones.patch to use tempfile to generate the temp files, to avoid predictable names in /tmp. Depend on debianutils for the tempfile binary. Also fixes typo in patch found during testing.
Petter Reinholdtsen
pere at moszumanska.debian.org
Wed Oct 1 05:44:53 UTC 2014
This is an automated email from the git hooks/post-receive script.
pere pushed a commit to branch master
in repository ldap2zone.
commit 15d679adcb48e5c4ad3557bce6ea7e833f982e2a
Author: Petter Reinholdtsen <pere at hungry.com>
Date: Wed Oct 1 07:44:44 2014 +0200
Modify revert-broken-zones.patch to use tempfile to generate the temp files, to avoid predictable names in /tmp. Depend on debianutils for the tempfile binary. Also fixes typo in patch found during testing.
---
debian/control | 1 +
debian/patches/revert-broken-zones.patch | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/debian/control b/debian/control
index f2667c5..6e47d13 100644
--- a/debian/control
+++ b/debian/control
@@ -16,6 +16,7 @@ DM-Upload-Allowed: yes
Package: ldap2zone
Architecture: any
Depends: ${misc:Depends}, ${shlibs:Depends}, bind9
+ , debianutils
Conflicts: ldapdns
Description: Extract DNS zones from LDAP trees
This is a tool that reads info for a zone from LDAP and constructs
diff --git a/debian/patches/revert-broken-zones.patch b/debian/patches/revert-broken-zones.patch
index c8363f3..432e2f8 100644
--- a/debian/patches/revert-broken-zones.patch
+++ b/debian/patches/revert-broken-zones.patch
@@ -14,7 +14,7 @@ Last-Update: 2014-09-30
- if $ldap2zone $domain $LDAP_URI $TTL > /tmp/$domain; then
- lines=$(cat /tmp/$domain | wc -l)
- [ $lines -gt 1 ] && mv /tmp/$domain $BIND_DATA/${PREFIX}${domain}
-+ TMPFILE=$TMPFILE
++ TMPFILE=$(tempfile)
+ CURRENT=$BIND_DATA/${PREFIX}${domain}
+ OLD=$BIND_DATA/${PREFIX}${domain}.old-$$
+ if $ldap2zone $domain $LDAP_URI $TTL > $TMPFILE; then
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/pkg-team/ldap2zone.git
More information about the debian-edu-commits
mailing list