Misc small fixes

* Remove the rpmbuild tree with the dist-clean target.
* Move ipa-server-setupssl from /usr/sbin to /usr/share/ipa
* Check in requirement change for generated freeipa-python.spec
* Fix interactive hostname in ipa-server-install.
This commit is contained in:
Karl MacMillan 0001-01-01 00:00:00 +00:00
parent 22710a8dce
commit 50d12d6d2e
8 changed files with 11 additions and 8 deletions

View File

@ -155,4 +155,4 @@ dist: version-update archive tarballs archive-cleanup rpms
local-dist: clean version-update local-archive tarballs archive-cleanup rpms
dist-clean: clean
rm -fr dist
rm -fr rpmbuild dist

View File

@ -10,7 +10,7 @@ Source0: %{name}-%{version}.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Requires: python PyKerberos python-krbV
Requires: python PyKerberos
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

View File

@ -1,5 +1,9 @@
SUBDIRS=ipa-install xmlrpc-server ipa-kpasswd ipa-slapi-plugins
PYTHONDIR=$(DESTDIR)/usr/share/ipa/ipaserver
SHAREDIR=$(DESTDIR)/usr/share/ipa
PYTHONDIR=$(SHAREDIR)/ipaserver
SBINDIR=$(DESTDIR)/usr/sbin
all:
@for subdir in $(SUBDIRS); do \

View File

@ -41,7 +41,6 @@ rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_sbindir}/ipa-server-install
%{_sbindir}/ipa-server-setupssl
%{_sbindir}/ipa_kpasswd
%attr(755,root,root) %{_initrddir}/ipa-kpasswd

View File

@ -41,7 +41,6 @@ rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_sbindir}/ipa-server-install
%{_sbindir}/ipa-server-setupssl
%{_sbindir}/ipa_kpasswd
%attr(755,root,root) %{_initrddir}/ipa-kpasswd

View File

@ -1,3 +1,4 @@
SHAREDIR=$(DESTDIR)/usr/share/ipa
SBINDIR=$(DESTDIR)/usr/sbin
all: ;
@ -5,7 +6,7 @@ all: ;
install:
-mkdir $(SBINDIR)
install -m 755 ipa-server-install $(SBINDIR)
install -m 755 ipa-server-setupssl $(SBINDIR)
install -m 755 ipa-server-setupssl $(SHAREDIR)
$(MAKE) -C share $@
$(MAKE) -C test $@

View File

@ -134,7 +134,7 @@ def main():
if host_name == "":
print ""
host_name = raw_input("Please provide a Fully Qualified name to use for your system [master.example.com]: ")
if host_name != "":
if host_name == "":
host_name = "master.example.com"
if len(host_name.split(".")) < 2 or host_name == "localhost.localdomain":

View File

@ -156,7 +156,7 @@ class DsInstance:
def __enable_ssl(self):
logging.debug("configuring ssl for ds instance")
dirname = self.config_dirname()
args = ["/usr/sbin/ipa-server-setupssl", self.dm_password,
args = ["/usr/share/ipa/ipa-server-setupssl", self.dm_password,
dirname, self.host_name]
run(args)
logging.debug("done configuring ssl for ds instance")