integrate-distro.sh: DHCP-server, Samba, LDAP

- Add packages dhcp-server, samba-client bprof-run
  - Copy /etc/openldap/schema/authldap.schema, the
    schema coming with courier-authlib-ldap doesn't cut it,
    lacks mailhost attribute
  - Copy /var/lib/ldap to seed the database
This commit is contained in:
Jan Lindemann 2011-06-16 16:59:06 +00:00 committed by Jan Lindemann
commit ed74599194

View file

@ -40,10 +40,11 @@ payload_pkgs="
proftpd proftpd
proftpd-ldap proftpd-ldap
xntp xntp
bind
dhcp-server
rsyslog rsyslog
openldap2 openldap2
courier-authlib-ldap courier-authlib-ldap
bind
xinetd xinetd
apache2 apache2
@ -56,6 +57,7 @@ payload_pkgs="
dhcpcd dhcpcd
nfs-client nfs-client
samba-client
sudo sudo
sysconfig sysconfig
glibc-locale glibc-locale
@ -100,6 +102,7 @@ payload_pkgs="
jux-client-run jux-client-run
feedfsd-run feedfsd-run
snmp-manager-run snmp-manager-run
bprof-run
" "
# -- functions # -- functions
usage() usage()
@ -609,6 +612,7 @@ cmd_install()
setup_root_directory setup_root_directory
setup_bind_mounts setup_bind_mounts
mv $root/var/lib/ldap $root/var/lib/ldap-$myname
mkdir -p -m 755 $root/etc mkdir -p -m 755 $root/etc
mkdir -p -m 755 $root/etc/openldap mkdir -p -m 755 $root/etc/openldap
for c in \ for c in \
@ -619,6 +623,8 @@ cmd_install()
/etc/openldap/slapd.conf \ /etc/openldap/slapd.conf \
/etc/sysconfig/keyboard \ /etc/sysconfig/keyboard \
/etc/sysconfig/clock \ /etc/sysconfig/clock \
/etc/openldap/schema/authldap.schema \
/var/lib/ldap \
; do ; do
install -d -m 755 `dirname $root$c` install -d -m 755 `dirname $root$c`
cp -rp $c $root$c cp -rp $c $root$c