summaryrefslogtreecommitdiffstats
path: root/network/heimdal
diff options
context:
space:
mode:
author Thibaut Notteboom <thibaut.notteboom@gmail.com>2021-05-02 15:35:17 -0500
committer Robby Workman <rworkman@slackbuilds.org>2021-05-02 15:35:17 -0500
commita0b18476a205fb4fafdc1d3665b089f56d507e49 (patch)
tree57644f8e287f555457fa2de2f3c98050655d5101 /network/heimdal
parent2b6dc73415bbf04a4d926b78397998da0d947db9 (diff)
downloadslackbuilds-a0b18476a205fb4fafdc1d3665b089f56d507e49.tar.gz
slackbuilds-a0b18476a205fb4fafdc1d3665b089f56d507e49.tar.xz
network/heimdal: Fixed for Slackware 15.0
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/heimdal')
-rw-r--r--network/heimdal/README2
-rw-r--r--network/heimdal/config/heimdal.sh4
-rw-r--r--network/heimdal/config/rc.ipropd-master6
-rw-r--r--network/heimdal/config/rc.ipropd-slave6
-rw-r--r--network/heimdal/config/rc.kadmind6
-rw-r--r--network/heimdal/config/rc.kdc6
-rw-r--r--network/heimdal/config/rc.kpasswdd6
-rw-r--r--network/heimdal/doinst.sh7
-rw-r--r--network/heimdal/heimdal.SlackBuild32
-rw-r--r--network/heimdal/slack-desc2
10 files changed, 42 insertions, 35 deletions
diff --git a/network/heimdal/README b/network/heimdal/README
index 41e6e229b2..3031fa264f 100644
--- a/network/heimdal/README
+++ b/network/heimdal/README
@@ -8,5 +8,3 @@ Heimdal is a free implementation of Kerberos 5. The goals are to:
* include the most important and useful application programs
(rsh, telnet, popper, etc.)
* include enough backwards compatibility with Kerberos V4
-
-This package conflicts with krb5.
diff --git a/network/heimdal/config/heimdal.sh b/network/heimdal/config/heimdal.sh
new file mode 100644
index 0000000000..fd3f0bdba4
--- /dev/null
+++ b/network/heimdal/config/heimdal.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+export PATH=/usr/heimdal/bin:/usr/heimdal/sbin:$PATH
+export MANPATH=/usr/heimdal/man:$MANPATH
diff --git a/network/heimdal/config/rc.ipropd-master b/network/heimdal/config/rc.ipropd-master
index 744943b4c5..054048c440 100644
--- a/network/heimdal/config/rc.ipropd-master
+++ b/network/heimdal/config/rc.ipropd-master
@@ -3,9 +3,9 @@
HOSTNAME=`hostname -f`
ipropd_master_start() {
- if [ -x /usr/libexec/ipropd-master ]; then
- echo "Starting the ipropd-master service: /usr/libexec/ipropd-master --detach"
- /usr/libexec/ipropd-master --detach --hostname=$HOSTNAME
+ if [ -x /usr/heimdal/libexec/ipropd-master ]; then
+ echo "Starting the ipropd-master service: /usr/heimdal/libexec/ipropd-master --detach"
+ /usr/heimdal/libexec/ipropd-master --detach --hostname=$HOSTNAME
fi
}
diff --git a/network/heimdal/config/rc.ipropd-slave b/network/heimdal/config/rc.ipropd-slave
index 6b1a8c7274..9364430e07 100644
--- a/network/heimdal/config/rc.ipropd-slave
+++ b/network/heimdal/config/rc.ipropd-slave
@@ -4,9 +4,9 @@ KEYTAB=/etc/iprop.keytab
HOSTNAME=`hostname -f`
ipropd_slave_start() {
- if [ -x /usr/libexec/ipropd-slave ]; then
- echo "Starting the ipropd-slave service: /usr/libexec/ipropd-slave --detach"
- /usr/libexec/ipropd-slave --detach --keytab=$KEYTAB --hostname=$HOSTNAME
+ if [ -x /usr/heimdal/libexec/ipropd-slave ]; then
+ echo "Starting the ipropd-slave service: /usr/heimdal/libexec/ipropd-slave --detach"
+ /usr/heimdal/libexec/ipropd-slave --detach --keytab=$KEYTAB --hostname=$HOSTNAME
fi
}
diff --git a/network/heimdal/config/rc.kadmind b/network/heimdal/config/rc.kadmind
index 23b5447078..4487b492bc 100644
--- a/network/heimdal/config/rc.kadmind
+++ b/network/heimdal/config/rc.kadmind
@@ -1,9 +1,9 @@
#!/bin/sh
kadmind_start() {
- if [ -x /usr/libexec/kadmind ]; then
- echo "Starting the kadmind service: /usr/libexec/kadmind"
- /usr/libexec/kadmind --detach
+ if [ -x /usr/heimdal/libexec/kadmind ]; then
+ echo "Starting the kadmind service: /usr/heimdal/libexec/kadmind"
+ /usr/heimdal/libexec/kadmind --detach
fi
}
diff --git a/network/heimdal/config/rc.kdc b/network/heimdal/config/rc.kdc
index 3233794801..09c9f37827 100644
--- a/network/heimdal/config/rc.kdc
+++ b/network/heimdal/config/rc.kdc
@@ -1,9 +1,9 @@
#!/bin/sh
kdc_start() {
- if [ -x /usr/libexec/kdc ]; then
- echo "Starting the kdc service: /usr/libexec/kdc --detach"
- /usr/libexec/kdc --detach
+ if [ -x /usr/heimdal/libexec/kdc ]; then
+ echo "Starting the kdc service: /usr/heimdal/libexec/kdc --detach"
+ /usr/heimdal/libexec/kdc --detach
fi
}
diff --git a/network/heimdal/config/rc.kpasswdd b/network/heimdal/config/rc.kpasswdd
index f712ee8e45..793d3d2094 100644
--- a/network/heimdal/config/rc.kpasswdd
+++ b/network/heimdal/config/rc.kpasswdd
@@ -1,9 +1,9 @@
#!/bin/sh
kpasswdd_start() {
- if [ -x /usr/libexec/kpasswdd ]; then
- echo "Starting the kpasswdd service: /usr/libexec/kpasswdd"
- /usr/libexec/kpasswdd --detach
+ if [ -x /usr/heimdal/libexec/kpasswdd ]; then
+ echo "Starting the kpasswdd service: /usr/heimdal/libexec/kpasswdd"
+ /usr/heimdal/libexec/kpasswdd --detach
fi
}
diff --git a/network/heimdal/doinst.sh b/network/heimdal/doinst.sh
index 3176f057e6..37eaf64c5d 100644
--- a/network/heimdal/doinst.sh
+++ b/network/heimdal/doinst.sh
@@ -23,10 +23,15 @@ preserve_perms() {
}
preserve_perms etc/rc.d/rc.kdc.new
-preserve_perms etc/rc.d/rc.kadmind.new
+preserve_perms etc/rc.d/rc.kadmind-heimdal.new
preserve_perms etc/rc.d/rc.kpasswdd.new
preserve_perms etc/rc.d/rc.ipropd-master.new
preserve_perms etc/rc.d/rc.ipropd-slave.new
config etc/krb5.conf.new
+config etc/profile.d/heimdal.sh.new
config var/heimdal/kdc.conf.new
config var/heimdal/kadmind.acl.new
+
+if [ ! "$(grep /usr/heimdal/lib@LIBDIRSUFFIX@ /etc/ld.so.conf)" ]; then
+ echo "/usr/heimdal/lib@LIBDIRSUFFIX@" >> /etc/ld.so.conf
+fi
diff --git a/network/heimdal/heimdal.SlackBuild b/network/heimdal/heimdal.SlackBuild
index bffccb9397..77a4c325de 100644
--- a/network/heimdal/heimdal.SlackBuild
+++ b/network/heimdal/heimdal.SlackBuild
@@ -2,8 +2,8 @@
# Slackware build script for KTH Heimdal Kerberos
-# Copyright 2010 Menno Duurma
-# Copyright 2011-2019 Thibaut Notteboom, Paris, FRANCE
+# Copyright 2010 Menno Duursma
+# Copyright 2011-2021 Thibaut Notteboom, Paris, FRANCE
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,7 @@
PRGNAM=heimdal
VERSION=${VERSION:-7.7.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -72,20 +72,18 @@ find -L . \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
-LDFLAGS="-L/usr/lib$LIBDIRSUFFIX -lpthread" \
./configure \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --prefix=/usr/heimdal \
+ --libdir=/usr/heimdal/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--infodir=/usr/info \
- --mandir=/usr/man \
+ --mandir=/usr/heimdal/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--with-openldap=/usr \
- --with-readline=/usr \
+ --with-libedit=/usr \
--with-sqlite3=/usr \
--with-libintl=/usr \
- --with-berkeley-db-include=/usr/include/db48 \
--with-x \
--with-ipv6 \
--without-hesiod \
@@ -103,22 +101,23 @@ make install-strip DESTDIR=$PKG
mkdir -p $PKG/etc/rc.d
cat $CWD/config/krb5.conf > $PKG/etc/krb5.conf.new
cat $CWD/config/rc.kdc > $PKG/etc/rc.d/rc.kdc.new
-cat $CWD/config/rc.kadmind > $PKG/etc/rc.d/rc.kadmind.new
+cat $CWD/config/rc.kadmind > $PKG/etc/rc.d/rc.kadmind-heimdal.new
cat $CWD/config/rc.kpasswdd > $PKG/etc/rc.d/rc.kpasswdd.new
cat $CWD/config/rc.ipropd-master > $PKG/etc/rc.d/rc.ipropd-master.new
cat $CWD/config/rc.ipropd-slave > $PKG/etc/rc.d/rc.ipropd-slave.new
+mkdir -p $PKG/etc/profile.d
+cat $CWD/config/heimdal.sh > $PKG/etc/profile.d/heimdal.sh.new
+
mkdir -p $PKG/var/heimdal
cat $CWD/config/kdc.conf > $PKG/var/heimdal/kdc.conf.new
cat $CWD/config/kadmind.acl > $PKG/var/heimdal/kadmind.acl.new
-mv $PKG/usr/bin/su $PKG/usr/bin/su-heimdal
-
# Don't ship .la files:
-rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
+rm -f $PKG/{,usr/}heimdal/lib/*.la
-rm -rf $PKG/usr/man/cat?
-find $PKG/usr/man -type f -exec gzip -9 -f {} \;
+rm -rf $PKG/usr/heimdal/man/cat?
+find $PKG/usr/heimdal/man -type f -exec gzip -9 -f {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
rm -f $PKG/usr/info/dir
@@ -133,7 +132,8 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
-cat $CWD/doinst.sh > $PKG/install/doinst.sh
+sed -e "s|@LIBDIRSUFFIX@|$LIBDIRSUFFIX|" \
+ $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/network/heimdal/slack-desc b/network/heimdal/slack-desc
index 417279b350..07b754ca40 100644
--- a/network/heimdal/slack-desc
+++ b/network/heimdal/slack-desc
@@ -16,4 +16,4 @@ heimdal: (key distribution center) ``kerberized'' versions of programs such
heimdal: as such as login and ftp/ftpd , telnet/telnetd and administration
heimdal: utilities such as ``klist'' and ``kadmin''. krb and GSSAPI libs.
heimdal:
-heimdal: This package conflicts with krb5.
+heimdal: