diff options
author | B Stack <bgstack15@gmail.com> | 2017-05-29 06:34:41 -0400 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2017-05-29 06:34:41 -0400 |
commit | a9b7fff4f3f88d6f1cb7e980e5f83d9956dcc010 (patch) | |
tree | b87644a4cc72bbbb87b5fd98d9e1147ee9d644a6 | |
parent | starting to add dhcpd-control (diff) | |
download | ddtools-a9b7fff4f3f88d6f1cb7e980e5f83d9956dcc010.tar.gz ddtools-a9b7fff4f3f88d6f1cb7e980e5f83d9956dcc010.tar.bz2 ddtools-a9b7fff4f3f88d6f1cb7e980e5f83d9956dcc010.zip |
renamed package to ddtools
-rw-r--r-- | README.md | 12 | ||||
-rw-r--r-- | etc/updatezone/dhcpd-control.conf | 1 | ||||
l--------- | usr/bin/dhcpd-control | 1 | ||||
l--------- | usr/bin/updatezone | 2 | ||||
-rwxr-xr-x | usr/share/ddtools/dhcpd-control.sh (renamed from usr/share/updatezone/dhcpd-control.sh) | 0 | ||||
-rw-r--r-- | usr/share/ddtools/docs/README.txt (renamed from usr/share/updatezone/docs/README.txt) | 14 | ||||
-rw-r--r-- | usr/share/ddtools/docs/ddtools.spec (renamed from usr/share/updatezone/docs/updatezone.spec) | 11 | ||||
-rw-r--r-- | usr/share/ddtools/docs/files-for-versioning.txt | 3 | ||||
-rw-r--r-- | usr/share/ddtools/examples/ipa.smith122.com.conf.example (renamed from usr/share/updatezone/examples/ipa.smith122.com.conf.example) | 0 | ||||
-rwxr-xr-x | usr/share/ddtools/inc/get-files (renamed from usr/share/updatezone/inc/get-files) | 2 | ||||
-rwxr-xr-x | usr/share/ddtools/inc/pack (renamed from usr/share/updatezone/inc/pack) | 2 | ||||
-rwxr-xr-x | usr/share/ddtools/updatezone.sh (renamed from usr/share/updatezone/updatezone.sh) | 0 | ||||
-rw-r--r-- | usr/share/updatezone/docs/files-for-versioning.txt | 3 | ||||
-rw-r--r-- | usr/share/updatezone/docs/packaging.txt | 1 |
14 files changed, 29 insertions, 23 deletions
@@ -1,13 +1,15 @@ ### Overview -updatezone is a tool that helps you easily adjust dns zone files. It handles incrementing the serial number and pushing updates to slave dns servers. For the complete documentation of the package itself, view usr/share/updatezone/docs/README.txt. +ddtools is a collection of tools for manging dns and dhcpd. For the complete documentation of the package itself, view usr/share/ddtools/docs/README.txt. +updatezone helps you easily adjust dns zone files. It handles incrementing the serial number and pushing updates to slave dns servers. +dhcpd-control helps manage paired dhcpd servers. ### Building The recommended way to build an rpm is: pushd ~/rpmbuild; mkdir -p SOURCES RPMS SPECS BUILD BUILDROOT; popd - mkdir -p ~/rpmbuild/SOURCES/updatezone-0.0-1 - cd ~/rpmbuild/SOURCES/updatezone-0.0-1 - git clone https://github.com/bgstack15/updatezone - usr/share/updatezone/inc/pack rpm + mkdir -p ~/rpmbuild/SOURCES/ddtools-0.0-2 + cd ~/rpmbuild/SOURCES/ddtools-0.0-2 + git clone https://github.com/bgstack15/ddtools + usr/share/ddtools/inc/pack rpm The generated rpm will be in ~/rpmbuild/RPMS/noarch diff --git a/etc/updatezone/dhcpd-control.conf b/etc/updatezone/dhcpd-control.conf deleted file mode 100644 index ef8bc52..0000000 --- a/etc/updatezone/dhcpd-control.conf +++ /dev/null @@ -1 +0,0 @@ -[dhcpd-control] diff --git a/usr/bin/dhcpd-control b/usr/bin/dhcpd-control new file mode 120000 index 0000000..2eb517b --- /dev/null +++ b/usr/bin/dhcpd-control @@ -0,0 +1 @@ +../share/ddtools/dhcpd-control.sh
\ No newline at end of file diff --git a/usr/bin/updatezone b/usr/bin/updatezone index dcc38ab..bbe52a3 120000 --- a/usr/bin/updatezone +++ b/usr/bin/updatezone @@ -1 +1 @@ -../share/updatezone/updatezone.sh
\ No newline at end of file +../share/ddtools/updatezone.sh
\ No newline at end of file diff --git a/usr/share/updatezone/dhcpd-control.sh b/usr/share/ddtools/dhcpd-control.sh index a334a93..a334a93 100755 --- a/usr/share/updatezone/dhcpd-control.sh +++ b/usr/share/ddtools/dhcpd-control.sh diff --git a/usr/share/updatezone/docs/README.txt b/usr/share/ddtools/docs/README.txt index 76bb4b4..db65caf 100644 --- a/usr/share/updatezone/docs/README.txt +++ b/usr/share/ddtools/docs/README.txt @@ -1,8 +1,8 @@ -File: usr/share/updatezone/docs/README.txt -Package: updatezone +File: usr/share/ddtools/docs/README.txt +Package: ddtools Author: bgstack15 Startdate: 2017-05-26 -Title: Readme file for updatezone +Title: Readme file for ddtools Purpose: All packages should come with a readme Usage: Read it. Reference: README.txt @@ -10,16 +10,18 @@ Improve: Document: Below this line ### WELCOME +ddtools is a suite of shell scripts that help manage dns and dhcpd. Updatezone provides an easy way to update dns zone files. Intended primarily for bind9 zone files, experimentation is encouraged. Instead of running the series of commands manually: rndc freeze, vi zonefile, rndc thaw and so on, use updatezone. +dhcpd-control helps manage paired dhcpd servers. ### CONFIGURATION -The conf files belong in /etc/updatezone/. See example in /usr/share/updatezone/examples/. +The conf files belong in /etc/ddtools/. See example in /usr/share/ddtools/examples/. ### USING THIS TOOL $ updatezone ipa.smith122.com -Where this file exists: /etc/updatezone/ipa.smith122.com.conf +Where this file exists: /etc/ddtools/ipa.smith122.com.conf UZ_ZONE_NAME=ipa.smith122.com UZ_FORWARD_ZONE=ipa.smith122.com @@ -42,5 +44,5 @@ $ updatezone ipa.smith122.com ad.smith122.com ### REFERENCE ### CHANGELOG -2017-05-27 B Stack <bgstack15@gmail.com> 0.0-1 +2017-05-27 B Stack <bgstack15@gmail.com> 0.0-2 - Initial package construction diff --git a/usr/share/updatezone/docs/updatezone.spec b/usr/share/ddtools/docs/ddtools.spec index d08942e..2e614cf 100644 --- a/usr/share/updatezone/docs/updatezone.spec +++ b/usr/share/ddtools/docs/ddtools.spec @@ -1,20 +1,23 @@ # ref: http://www.rpm.org/max-rpm/s1-rpm-build-creating-spec-file.html -Summary: update dns zone files easily -Name: updatezone +Summary: suite of scripts for managing dns and dhcpd +Name: ddtools Version: 0.0 Release: 2 License: CC BY-SA 4.0 Group: Applications/System -Source: updatezone.tgz +Source: ddtools.tgz URL: https://bgstack15.wordpress.com/ #Distribution: #Vendor: Packager: B Stack <bgstack15@gmail.com> Requires: bgscripts-core >= 1.2-11 +Obsoletes: updatezone <= %{version}-%{release} Buildarch: noarch %description -updatezone provides updatezone.sh which takes a simple config file for selecting the dns zone files to edit. Bind is the only supported dns server right now, but experimentation is encouraged. +ddtools provides shell scripts that help manage dns and dhcpd. +updatezone.sh takes a simple config file for selecting the dns zone files to edit. Bind is the only supported dns server right now, but experimentation is encouraged. +dhcpd-control helps manage paired dhcpd servers. #%global _python_bytecompile_errors_terminate_build 0 diff --git a/usr/share/ddtools/docs/files-for-versioning.txt b/usr/share/ddtools/docs/files-for-versioning.txt new file mode 100644 index 0000000..f160609 --- /dev/null +++ b/usr/share/ddtools/docs/files-for-versioning.txt @@ -0,0 +1,3 @@ +docs/README.txt +docs/ddtools.spec +docs/debian-ddtools/control diff --git a/usr/share/updatezone/examples/ipa.smith122.com.conf.example b/usr/share/ddtools/examples/ipa.smith122.com.conf.example index 9f74dd8..9f74dd8 100644 --- a/usr/share/updatezone/examples/ipa.smith122.com.conf.example +++ b/usr/share/ddtools/examples/ipa.smith122.com.conf.example diff --git a/usr/share/updatezone/inc/get-files b/usr/share/ddtools/inc/get-files index fd3e45a..3302cc5 100755 --- a/usr/share/updatezone/inc/get-files +++ b/usr/share/ddtools/inc/get-files @@ -6,7 +6,7 @@ if test -n "${package}"; then cd ${rpmbuilddir}/SOURCES/"${package}-${version}"; ### for rpm find * -type d -regextype grep \ - \( -regex 'usr\/share\/updatezone.*' -o -regex 'etc\/updatezone.*' \) \ + \( -regex 'usr\/share\/ddtools*' -o -regex 'etc\/ddtools*' \) \ ! -regex '.*gui.*' \ | sed -e 's/^/%dir \//;' find * -mindepth 1 ! -name "${package}.spec.$$.swp" \ diff --git a/usr/share/updatezone/inc/pack b/usr/share/ddtools/inc/pack index 6c5d72f..5173a22 100755 --- a/usr/share/updatezone/inc/pack +++ b/usr/share/ddtools/inc/pack @@ -19,7 +19,7 @@ esac echo " $@ " | grep -qiE -- "help|usage|\s-h\s|\s-\?" 1>/dev/null 2>&1 && { # display help and exit less -F <<EOF -pack utility version 2017-05-27a-updatezone +pack utility version 2017-05-29a-ddtools usage: pack [ rpm | deb | tar | scrub ] [ --debug | -d {0-10} ] Provides a single command for building a package. This script is customized to each package. optional arguments: diff --git a/usr/share/updatezone/updatezone.sh b/usr/share/ddtools/updatezone.sh index d6d01c0..d6d01c0 100755 --- a/usr/share/updatezone/updatezone.sh +++ b/usr/share/ddtools/updatezone.sh diff --git a/usr/share/updatezone/docs/files-for-versioning.txt b/usr/share/updatezone/docs/files-for-versioning.txt deleted file mode 100644 index c08c65a..0000000 --- a/usr/share/updatezone/docs/files-for-versioning.txt +++ /dev/null @@ -1,3 +0,0 @@ -docs/README.txt -docs/updatezone.spec -docs/debian-updatezone/control diff --git a/usr/share/updatezone/docs/packaging.txt b/usr/share/updatezone/docs/packaging.txt deleted file mode 100644 index beb1ccb..0000000 --- a/usr/share/updatezone/docs/packaging.txt +++ /dev/null @@ -1 +0,0 @@ -delete this file please. |