diff options
| author | Simon Rettberg | 2014-07-04 14:46:20 +0200 |
|---|---|---|
| committer | Simon Rettberg | 2014-07-04 14:46:20 +0200 |
| commit | d1f5aedd76df437a08f3283fa00bc8a9dab7fa2b (patch) | |
| tree | 8c046eeaf8e874b479b95964b2bf410365cff438 /remote/modules/pam | |
| parent | remove hardcoded /bin/rm call. Relative calls work in services files (diff) | |
| download | tm-scripts-d1f5aedd76df437a08f3283fa00bc8a9dab7fa2b.tar.gz tm-scripts-d1f5aedd76df437a08f3283fa00bc8a9dab7fa2b.tar.xz tm-scripts-d1f5aedd76df437a08f3283fa00bc8a9dab7fa2b.zip | |
"Fedora Support", step 1 ->
Several changes:
1) Make sure /bin /sbin /lib and /lib64 are ALWAYS symlinks to /usr/XXX,
no matter what the current distribution does.
2) Make sure nobody and nogroup exist.
3) Fix various modules making assumptions that are not true on every
distro.
4) Add symlinks to kdm module since fedora is looking for kdmrc in
yet another spot.
5) Add detection of fedora, support its package manager
What still breaks: dnbd3
Other distros might not work now, they need adaption to changed logic
in some modules.
Diffstat (limited to 'remote/modules/pam')
| -rw-r--r-- | remote/modules/pam/module.build | 4 | ||||
| -rw-r--r-- | remote/modules/pam/module.conf.fedora | 42 | ||||
| -rw-r--r-- | remote/modules/pam/module.conf.opensuse | 1 | ||||
| -rw-r--r-- | remote/modules/pam/module.conf.opensuse.13.1 | 1 |
4 files changed, 46 insertions, 2 deletions
diff --git a/remote/modules/pam/module.build b/remote/modules/pam/module.build index c6d92510..3f0d8861 100644 --- a/remote/modules/pam/module.build +++ b/remote/modules/pam/module.build @@ -4,7 +4,7 @@ fetch_source() { # get pam-script source download_untar "$REQUIRED_PAM_SCRIPT_URL" "src/" # Distribution switch: openSuse 13.1 has no package nss-ldap: - if [[ "$SYS_DISTRIBUTION" == "opensuse" && "$SYS_VERSION" == "13.1" ]]; then + if [ -n "$REQUIRED_NSS_LDAPD_URL" ]; then pinfo "Downloading $REQUIRED_NSS_LDAPD_URL ..." download_untar "$REQUIRED_NSS_LDAPD_URL" "src/" fi @@ -35,7 +35,7 @@ build() { ./configure --prefix=/ --sysconfdir=/etc/pam-script --libdir="$(dirname ${PAM_UNIX_LOCATION:1})" || perror "pam-script: ./configure failed." make DESTDIR="${MODULE_BUILD_DIR}" install || perror "pam-script: make install to ${MODULE_BUILD_DIR} failed." # openSuse 13.1 has no package nss-pam-ldapd. So, we compile it. - if [[ "$SYS_DISTRIBUTION" == "opensuse" && "$SYS_VERSION" == "13.1" ]]; then + if [ -n "$REQUIRED_NSS_LDAPD_URL" ]; then cd "${MODULE_DIR}/src/$REQUIRED_NSS_LDAPD_VERSION" pinfo "compiling pam-nss-ldapd for openSuse 13.1 ..." ./configure || perror "openSuse 13.1 - pam-nss-ldapd: ./configure failed." diff --git a/remote/modules/pam/module.conf.fedora b/remote/modules/pam/module.conf.fedora new file mode 100644 index 00000000..b2eb3421 --- /dev/null +++ b/remote/modules/pam/module.conf.fedora @@ -0,0 +1,42 @@ +REQUIRED_NSS_LDAPD_VERSION="nss-pam-ldapd-0.8.13" +REQUIRED_NSS_LDAPD_URL="http://arthurdejong.org/nss-pam-ldapd/${REQUIRED_NSS_LDAPD_VERSION}.tar.gz" + +REQUIRED_INSTALLED_PACKAGES=" + pam + pam_krb5 + pam-devel + nss-mdns + libnfsidmap + openssl-devel + openldap-clients + nfs-utils + glibc + pam-devel + openldap-devel + krb5-devel +" +REQUIRED_CONTENT_PACKAGES=" + pam + pam_krb5 + pam-devel + nss-mdns + libnfsidmap + openldap-clients + nfs-utils + glibc +" +REQUIRED_LIBRARIES+=" + libnss_compat + libnss_db + libnss_dns + libnss_files + libnss_nis +" +REQUIRED_DIRECTORIES+=" + /$LIB64 + /usr/$LIB64 +" +REQUIRED_SYSTEM_FILES+=" + /$LIB64/security +" + diff --git a/remote/modules/pam/module.conf.opensuse b/remote/modules/pam/module.conf.opensuse index adef3174..dfc50e1e 100644 --- a/remote/modules/pam/module.conf.opensuse +++ b/remote/modules/pam/module.conf.opensuse @@ -3,6 +3,7 @@ REQUIRED_INSTALLED_PACKAGES=" pam_krb5 pam-devel nss-pam-ldapd + nss-mdns pam-modules libopenssl-devel openldap2-client diff --git a/remote/modules/pam/module.conf.opensuse.13.1 b/remote/modules/pam/module.conf.opensuse.13.1 index 9fe1de17..d4435999 100644 --- a/remote/modules/pam/module.conf.opensuse.13.1 +++ b/remote/modules/pam/module.conf.opensuse.13.1 @@ -10,6 +10,7 @@ REQUIRED_INSTALLED_PACKAGES=" pam_krb5 pam-devel pam-modules + nss-mdns libopenssl-devel openldap2-client nfsidmap |
