Finish python library reorg.

This commit is contained in:
Karl MacMillan 0001-01-01 00:00:00 +00:00
parent bac241ffc3
commit 618b98fea7
3 changed files with 16 additions and 9 deletions

View File

@ -1,11 +1,16 @@
SUBDIRS=ipa-install
PYTHONDIR=$(DESTDIR)/usr/share/ipa/ipaserver
all:
@for subdir in $(SUBDIRS); do \
(cd $$subdir && $(MAKE) $@) || exit 1; \
done
install:
install-ipaserver:
-mkdir -p $(PYTHONDIR)
install -m 644 ipaserver/*.py $(PYTHONDIR)
install: install-ipaserver
@for subdir in $(SUBDIRS); do \
(cd $$subdir && $(MAKE) $@) || exit 1; \
done

View File

@ -1,10 +1,12 @@
SBINDIR=$(PREFIX)/usr/sbin
all: ;
install:
$(MAKE) -C src $@
install -m 755 ipa-server-install $(SBINDIR)
install -m 755 ipa-server-setupssl $(SBINDIR)
$(MAKE) -C share $@
clean:
$(MAKE) -C src $@
$(MAKE) -C share $@
rm -f *~
rm -f *~ *.pyc

View File

@ -32,8 +32,8 @@ sys.path.append("/usr/share/ipa")
import socket
import logging
from optparse import OptionParser
import ipa.dsinstance
import ipa.krbinstance
import ipaserver.dsinstance
import ipaserver.krbinstance
def parse_options():
parser = OptionParser(version=VERSION)
@ -61,7 +61,7 @@ def logging_setup(options):
# file.
logging.basicConfig(level=logging.DEBUG,
format='%(asctime)s %(levelname)s %(message)s',
filename='ipa-install.log',
filename='ipaserver-install.log',
filemode='w')
console = logging.StreamHandler()
@ -103,12 +103,12 @@ def main():
# Create a directory server instance
ds = ipa.dsinstance.DsInstance()
ds = ipaserver.dsinstance.DsInstance()
ds.create_instance(options.ds_user, options.realm_name, host_name,
options.password)
# Create a kerberos instance
krb = ipa.krbinstance.KrbInstance()
krb = ipaserver.krbinstance.KrbInstance()
krb.create_instance(options.ds_user, options.realm_name, host_name,
options.password, options.master_password)