rpms/checkdns/F-9 checkdns-0.5.config_location.patch, NONE, 1.1 checkdns.cron, NONE, 1.1 checkdns.spec, NONE, 1.1 import.log, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

John T. Guthrie III guthrie at fedoraproject.org
Thu Dec 4 22:00:11 UTC 2008


Author: guthrie

Update of /cvs/extras/rpms/checkdns/F-9
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv26209/F-9

Modified Files:
	.cvsignore sources 
Added Files:
	checkdns-0.5.config_location.patch checkdns.cron checkdns.spec 
	import.log 
Log Message:
Initial import.


checkdns-0.5.config_location.patch:

--- NEW FILE checkdns-0.5.config_location.patch ---
*** main.c.orig	2005-03-02 03:29:40.000000000 -0500
--- main.c	2008-08-27 14:33:45.000000000 -0400
***************
*** 20,26 ****
  	FILE *fd;
  	char *tmp, *tmp1;
  
! 	(void) strncpy(conf_file, "/usr/local/etc/checkdns.conf", TINYBUFSIZE-1);
  
  	while((c = getopt(argc, argv, "c:hv")) != -1) {
  		switch(c) {
--- 20,26 ----
  	FILE *fd;
  	char *tmp, *tmp1;
  
! 	(void) strncpy(conf_file, "/etc/checkdns.conf", TINYBUFSIZE-1);
  
  	while((c = getopt(argc, argv, "c:hv")) != -1) {
  		switch(c) {


--- NEW FILE checkdns.cron ---
# Cron job for running checkdns

# Uncomment the following line in order to have checkdns run on a regular
# basis.
#17 01 * * * checkdns /usr/sbin/checkdns >/dev/null 2>/dev/null


--- NEW FILE checkdns.spec ---
Name:		checkdns
Version:	0.5
Release:	7%{?dist}
Summary:	A Domain Name Server analysis and reporting tool

Group:		Applications/Internet
License:	GPLv2+
URL:		http://www.enderunix.org/checkdns/
Source0:	http://www.enderunix.org/checkdns/%{name}-%{version}.tar.gz
Source1:	checkdns.cron
Patch0:		checkdns-0.5.config_location.patch
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

Requires:	httpd, bind
Requires(pre):	shadow-utils

%description
This program is a domain name server analysis and reporting tool. It checks and
reports whether a domain name, hosted by your organization, is still in use,
and if so, reports whether your name servers are still the delegated name
servers of the domain name in question.

Reports are generated both to the console and as HTML output. HTMLs also
include information about the MX and WWW records of the domain name.

The tool is expected to be of great use for Internet Service Providers who are
in need of keeping track of lame dns records. 

%prep
%setup -q
%patch0 -p0 -b .config_location
mv Makefile Makefile.dist
mv Makefile.Linux Makefile

%build
CFLAGS="$RPM_OPT_FLAGS"
export CFLAGS

make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/%{_sbindir}
install -p checkdns $RPM_BUILD_ROOT/%{_sbindir}
install -d $RPM_BUILD_ROOT/%{_sysconfdir}
sed -e '/html_output_dir/s at usr/local/apache/htdocs at var/www/html@' -e '/lang_file/s at local/@@' checkdns.conf-dist > $RPM_BUILD_ROOT/%{_sysconfdir}/checkdns.conf
install -d $RPM_BUILD_ROOT/%{_sysconfdir}/cron.d
install -p -m 0644 %{SOURCE1} $RPM_BUILD_ROOT/%{_sysconfdir}/cron.d/%{name}
install -d $RPM_BUILD_ROOT/%{_localstatedir}/www/html/%{name}
install -p -m 0644 checkdns.css $RPM_BUILD_ROOT/%{_localstatedir}/www/html/%{name}
install -d $RPM_BUILD_ROOT/%{_datadir}/%{name}
cp -rp lang $RPM_BUILD_ROOT/%{_datadir}/%{name}

%clean
rm -rf $RPM_BUILD_ROOT

%pre
getent passwd checkdns >/dev/null || useradd -d \
 %{_localstatedir}/www/html/%{name} -r checkdns
:

%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING INSTALL LICENSE README THANKS TODO
%config(noreplace) %{_sysconfdir}/checkdns.conf
%config(noreplace) %{_sysconfdir}/cron.d/%{name}
%{_sbindir}/%{name}
%{_datadir}/%{name}
%dir %attr(-,checkdns,apache) %{_localstatedir}/www/html/%{name}
%config(noreplace) %{_localstatedir}/www/html/%{name}/checkdns.css

%changelog
* Fri Nov 28 2008 John Guthrie <guthrie at counterexampel.org> - 0.5-7
- Changed %%{optflags} -> $RPM_OPT_FLAGS
- Removed the postun section that contained a userdel command.

* Wed Nov 26 2008 John Guthrie <guthrie at counterexampel.org> - 0.5-6
- Added %%optflags to %%build.

* Tue Nov 25 2008 John Guthrie <guthrie at counterexampel.org> - 0.5-5
- Corrected License: GPLv2 -> GPLv2+ to match the text in the license headers.
- Create a new user checkdns upon install.  Delete that user upon package
  removal.
- Removed the suid bits from the program and the /var/www/html/checkdns
  directory.  Changed ownership on the directory to checknds:apache.
- Added cron job.

* Sat Sep 13 2008 John Guthrie <guthrie at counterexampel.org> - 0.5-4
- Cleaned up Source list
- Re-built without Packager tag

* Fri Sep 12 2008 John Guthrie <guthrie at counterexample.org> - 0.5-3
- Added Requires line for shadow-utils
- Moved the checkdns binary to /usr/sbin
- Changed permission scheme

* Fri Sep 12 2008 John Guthrie <guthrie at counterexample.org> - 0.5-2
- Fixed rpmlint errors and warnings
- Added "preserve" flags to copying commands in the %%install section

* Thu Aug 28 2008 John Guthrie <guthrie at counterexample.org> - 0.5-1
- Initial creation.


--- NEW FILE import.log ---
checkdns-0_5-7_fc9:F-9:checkdns-0.5-7.fc9.src.rpm:1228427948


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/checkdns/F-9/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	1 Dec 2008 20:55:21 -0000	1.1
+++ .cvsignore	4 Dec 2008 21:59:41 -0000	1.2
@@ -0,0 +1 @@
+checkdns-0.5.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/checkdns/F-9/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	1 Dec 2008 20:55:21 -0000	1.1
+++ sources	4 Dec 2008 21:59:41 -0000	1.2
@@ -0,0 +1 @@
+7420cc7a01217391bb3eb4a2e7da1e96  checkdns-0.5.tar.gz




More information about the fedora-extras-commits mailing list