* Renamed Specfile to ldap2dns.spec.in

* Updated make to build RPMs for SuSE and RedHat
* Updated ldap2dns.spec.in
* Added INSTALL file


git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@126 06cd67b6-e706-0410-b29e-9de616bca6e9
This commit is contained in:
Ben Klang
2005-12-05 03:32:56 +00:00
parent 5a115dc34f
commit 3f0ae4f007
4 changed files with 42 additions and 16 deletions

View File

@@ -6,7 +6,7 @@ Version ?.?.? (next)
Version 0.3.6 (latest) Version 0.3.6 (latest)
+ Fixed bug with duplicate OIDs in dns.schema from partially applied patch + Fixed bug with duplicate OIDs in dns.schema from partially applied patch
+ Renamed schema file to ldap2dns.schema + Renamed schema file to ldap2dns.schema
+ Updated RPM specfile (UNTESTED, may need editing) + Updated RPM specfile
+ Removed already merged patchfiles + Removed already merged patchfiles
+ Restructured file layout, created doc directory + Restructured file layout, created doc directory
+ Deprecated unfinished webadmin work. Will be replaced with Beatnik + Deprecated unfinished webadmin work. Will be replaced with Beatnik

22
INSTALL Normal file
View File

@@ -0,0 +1,22 @@
Make sure you have the OpenLDAP version 2 include files installed.
For Red Hat, this would be the openldap-devel package
for SuSE, this would be the openldap2-devel package
Type "make" in the current directory. If all goes well follow up with a
"make install"
To create an RPM, use one of the following commands:
sudo make DISTRIBUTION=redhat rpm
sudo make DISTRIBUTION=suse rpm
if you are running Red Hat or SuSE respectively.
For updates and changes see http://projects.alkaloid.net
Please send any problem or success reports to the maintainer.
--
Ben Klang <ben@alkaloid.net>
Alkaloid Networks

View File

@@ -13,6 +13,19 @@ LDAPCONFDIR=$(INSTALL_PREFIX)/etc/openldap
SPECFILE=ldap2dns.spec SPECFILE=ldap2dns.spec
DISTRIBUTION=redhat DISTRIBUTION=redhat
ifeq "$(DISTRIBUTION)" "redhat"
RPMBASE=/usr/src/redhat
RPMGROUP=Daemons/DNS
OPENLDAPPKG=openldap
endif
ifeq "$(DISTRIBUTION)" "suse"
RPMBASE=/usr/src/packages
RPMGROUP=Productivity/Networking/DNS/Servers
OPENLDAPPKG=openldap2
endif
all: ldap2dns ldap2dnsd all: ldap2dns ldap2dnsd
debug: ldap2dns-dbg debug: ldap2dns-dbg
@@ -51,21 +64,11 @@ tar: clean
cd ldap2dns cd ldap2dns
rpm: tar rpm: tar
ifeq "$(DISTRIBUTION)" "redhat"
RPMBASE=/usr/src/redhat
RPMGROUP=Daemons/DNS
endif
ifeq "$(DISTRIBUTION)" "suse"
RPMBASE=/usr/src/packages
RPMGROUP=Productivity/Networking/DNS/Servers
endif
sed -e 's#%VERSION%#$(VERSION)#g' \ sed -e 's#%VERSION%#$(VERSION)#g' \
-e 's#%RELEASE%#$(RELEASE)#g' \ -e 's#%RELEASE%#$(RELEASE)#g' \
-e 's#%RPMGROUP%#$(RPMGROUP)#g' \ -e 's#%RPMGROUP%#$(RPMGROUP)#g' \
-e 's#%OPENLDAPPKG%#$(OPENLDAPPKG)#g' \
< $(SPECFILE).in > $(SPECFILE) < $(SPECFILE).in > $(SPECFILE)
mv ../ldap2dns-$(VERSION).tar.gz $(RPMBASE) mv ../ldap2dns-$(VERSION).tar.gz $(RPMBASE)/SOURCES
rpmbuild -ba $(SPECFILE) rpmbuild -ba $(SPECFILE)

View File

@@ -9,8 +9,8 @@
# #
# norootforbuild # norootforbuild
# neededforbuild openldap-devel # neededforbuild %OPENLDAPPKG%-devel
BuildRequires: openldap-devel BuildRequires: %OPENLDAPPKG%-devel
Summary: LDAP to DNS gateway Summary: LDAP to DNS gateway
Packager: Ben Klang <ben@alkaloid.net> Packager: Ben Klang <ben@alkaloid.net>
@@ -22,6 +22,7 @@ License: GPL
Group: %RPMGROUP% Group: %RPMGROUP%
Source: ldap2dns-%{version}.tar.gz Source: ldap2dns-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
Autoreqprov: on
%description %description
ldap2dns is a program to create DNS records directly from an LDAP database. It ldap2dns is a program to create DNS records directly from an LDAP database. It
@@ -36,6 +37,7 @@ interfering with the DNS server.
ldap2dns is designed to write the text data files used by tinydns, but also ldap2dns is designed to write the text data files used by tinydns, but also
may be used to write zone files used by Bind. may be used to write zone files used by Bind.
%debugpackage
%prep %prep
%setup %setup
@@ -64,4 +66,3 @@ make INSTALL_PREFIX=$RPM_BUILD_ROOT install
- Updated Specfile to version 0.3.6 - Updated Specfile to version 0.3.6
* Wed Dec 06 2000 Jacob Rief <jacob.rief@tiscover.com> * Wed Dec 06 2000 Jacob Rief <jacob.rief@tiscover.com>
- initial revision for version 0.2.0 - initial revision for version 0.2.0