diff options
author | Deposite Pirate | 2018-09-16 18:48:36 +0200 |
---|---|---|
committer | Deposite Pirate | 2018-09-16 18:48:36 +0200 |
commit | d150a5f3e462fa7fe194a805a4aa0076f4d03ab9 (patch) | |
tree | ce5e44d69c5f3175bfdbd1e3717b52c5dcca5638 /libs_security/cyrus_sasl | |
parent | f29d3519ce073ec30f99754d93304324f7f26d65 (diff) |
Add ports.
Diffstat (limited to 'libs_security/cyrus_sasl')
-rw-r--r-- | libs_security/cyrus_sasl/cyrus-sasl-2.1.26-autostuff.patch.xz | bin | 0 -> 273836 bytes | |||
-rw-r--r-- | libs_security/cyrus_sasl/cyrus-sasl-2.1.26-fixes.patch.xz | bin | 0 -> 4772 bytes | |||
-rw-r--r-- | libs_security/cyrus_sasl/cyrus-sasl-2.1.26-systemd.patch.xz | bin | 0 -> 432 bytes | |||
-rw-r--r-- | libs_security/cyrus_sasl/cyrus-sasl-2.1.26-sysvinit.patch.xz | bin | 0 -> 796 bytes | |||
-rw-r--r-- | libs_security/cyrus_sasl/cyrus-sasl-2.1.26-tmpfilesd.patch.xz | bin | 0 -> 224 bytes | |||
-rwxr-xr-x | libs_security/cyrus_sasl/cyrus_sasl.build | 118 |
6 files changed, 118 insertions, 0 deletions
diff --git a/libs_security/cyrus_sasl/cyrus-sasl-2.1.26-autostuff.patch.xz b/libs_security/cyrus_sasl/cyrus-sasl-2.1.26-autostuff.patch.xz Binary files differnew file mode 100644 index 0000000..76a4f48 --- /dev/null +++ b/libs_security/cyrus_sasl/cyrus-sasl-2.1.26-autostuff.patch.xz diff --git a/libs_security/cyrus_sasl/cyrus-sasl-2.1.26-fixes.patch.xz b/libs_security/cyrus_sasl/cyrus-sasl-2.1.26-fixes.patch.xz Binary files differnew file mode 100644 index 0000000..32c230e --- /dev/null +++ b/libs_security/cyrus_sasl/cyrus-sasl-2.1.26-fixes.patch.xz diff --git a/libs_security/cyrus_sasl/cyrus-sasl-2.1.26-systemd.patch.xz b/libs_security/cyrus_sasl/cyrus-sasl-2.1.26-systemd.patch.xz Binary files differnew file mode 100644 index 0000000..dea2cdb --- /dev/null +++ b/libs_security/cyrus_sasl/cyrus-sasl-2.1.26-systemd.patch.xz diff --git a/libs_security/cyrus_sasl/cyrus-sasl-2.1.26-sysvinit.patch.xz b/libs_security/cyrus_sasl/cyrus-sasl-2.1.26-sysvinit.patch.xz Binary files differnew file mode 100644 index 0000000..325f9cf --- /dev/null +++ b/libs_security/cyrus_sasl/cyrus-sasl-2.1.26-sysvinit.patch.xz diff --git a/libs_security/cyrus_sasl/cyrus-sasl-2.1.26-tmpfilesd.patch.xz b/libs_security/cyrus_sasl/cyrus-sasl-2.1.26-tmpfilesd.patch.xz Binary files differnew file mode 100644 index 0000000..02c2b10 --- /dev/null +++ b/libs_security/cyrus_sasl/cyrus-sasl-2.1.26-tmpfilesd.patch.xz diff --git a/libs_security/cyrus_sasl/cyrus_sasl.build b/libs_security/cyrus_sasl/cyrus_sasl.build new file mode 100755 index 0000000..c7fdd28 --- /dev/null +++ b/libs_security/cyrus_sasl/cyrus_sasl.build @@ -0,0 +1,118 @@ +#!/bin/bash +# +# Maintainer: Deposite Pirate <ofni.sknuplatem@etaripd> + +source /usr/src/ports/Build/build.sh + +NAME=cyrus_sasl +VERSION=2.1.26 +BUILD=1 +DEPENDS=('openssl >= 1.0.1e-1') +OPTDEPENDS=('gdbm >= 1.10-1') + +# Description + +cat > ${PKG}/install/slack-desc <<EOF +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + +$(padd)|-----handy-ruler------------------------------------------------------| +${NAME}: cyrus_sasl +${NAME}: +${NAME}: A framework for authentication and data security in Internet +${NAME}: Protocols. It decouples authentication mechanisms from application +${NAME}: protocols, in theory allowing any authentication mechanism supported +${NAME}: by SASL to be used in any application protocol that uses SASL. +${NAME}: +${NAME}: Homepage: http://cyrusimap.org +${NAME}: +${NAME}: +${NAME}: +EOF + +cat >> ${PKG}/install/doinst.sh <<EOF +#!/bin/sh + +config() { + NEW="\$1" + OLD="\$(dirname \$NEW)/\$(basename \$NEW .new)" + # If there's no config file by that name, mv it over: + if [ ! -r \$OLD ]; then + mv \$NEW \$OLD + elif [ "\$(cat \$OLD | md5sum)" = "\$(cat \$NEW | md5sum)" ]; then + # toss the redundant copy + rm \$NEW + fi + # Otherwise, we leave the .new copy for the admin to consider... +} + +config etc/rc.d/rc.saslauthd.new +config etc/conf.d/saslauthd.conf.new +EOF + +# Sources + +SRCNAME[0]=cyrus-sasl +SRCVERS[0]=${VERSION} +SRCPACK[0]=ftp://ftp.cyrusimap.org/cyrus-sasl/${SRCNAME[0]}-${SRCVERS[0]}.tar.gz + +build0() +{ +sed -i 's|$(libdir)/pkgconfig|$(datarootdir)/pkgconfig|g' Makefile.{in,am} +sed -i 's|/usr/lib/sasl2|/usr/lib/plugins/sasl2|g' configure configure.in +sed -i 's|$(prefix)/lib/sasl2|$(prefix)/lib/plugins/sasl2|g' plugins/Makefile.{in,am} +CFLAGS="${FLAGS} -fPIC" CXXFLAGS="${FLAGS} -fPIC" \ +./configure \ + --build="${ARCH}-slackware-linux" \ + --disable-dependency-tracking \ + --enable-static=no \ + --enable-shared=yes \ + --prefix="${SYS_DIR[usr]}" \ + --mandir="${SYS_DIR[man]}" \ + --sysconfdir="${SYS_DIR[etc]}" \ + --libdir="${SYS_DIR[lib]}" \ + --localstatedir="${SYS_DIR[var]}" \ + --sbindir="${SYS_DIR[bin]}" \ + --disable-macos-framework \ + --disable-otp \ + --disable-srp \ + --disable-srp-setpass \ + --disable-krb4 \ + --disable-passdss \ + --disable-ldapdb \ + --enable-alwaystrue \ + --enable-checkapop \ + --enable-auth-sasldb \ + --enable-cram \ + --enable-digest \ + --enable-gssapi \ + --enable-plain \ + --enable-anon \ + --enable-login \ + --enable-ntlm \ + --enable-sql \ + --with-plugindir="${SYS_DIR[lib]}/plugins/sasl2" \ + --with-configdir="${SYS_DIR[etc]}/sasl2" \ + --with-saslauthd="${SYS_DIR[run]}/saslauthd" \ + --with-dbpath="${SYS_DIR[var]}/lib/sasldb" \ + --with-devrandom="/dev/urandom" \ + --with-dblib="gdbm" \ +#FIXME: PAM --with-pam +# --with-ldap +make ${JOBS} +make install DESTDIR="${PKG}" +doc AUTHORS +changelog NEWS +license COPYING +install.dir ${PKG}${SYS_DIR[systemdsystemunitdir]} +install.dat saslauthd.service ${PKG}${SYS_DIR[systemdsystemunitdir]} +install.dir ${PKG}${SYS_DIR[conf]} +install.cfg saslauthd.conf.d ${PKG}${SYS_DIR[conf]}/saslauthd.conf.new +install.dir ${PKG}${SYS_DIR[etc]}/{tmpfiles,rc}.d +install.cfg saslauthd.conf.tmpfiles ${PKG}${SYS_DIR[etc]}/tmpfiles.d/saslauthd.conf +install.dat rc.saslauthd.new ${PKG}${SYS_DIR[etc]}/rc.d +} |