mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-22 14:23:19 -06:00
Finish python library reorg.
This commit is contained in:
parent
bac241ffc3
commit
618b98fea7
@ -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
|
||||
|
@ -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
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user