aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev/libs/cyrus-sasl/cyrus-sasl.mkbuild106
-rw-r--r--dev/libs/cyrus-sasl/rc.saslauthd.new45
2 files changed, 151 insertions, 0 deletions
diff --git a/dev/libs/cyrus-sasl/cyrus-sasl.mkbuild b/dev/libs/cyrus-sasl/cyrus-sasl.mkbuild
new file mode 100644
index 0000000..b2deb80
--- /dev/null
+++ b/dev/libs/cyrus-sasl/cyrus-sasl.mkbuild
@@ -0,0 +1,106 @@
+#
+# This mkbuild is free software; you can redistribute it and/or modify it under the
+# terms of the GNU General Public License as published by the Free Software
+# Foundation; either version 2 of the License, or any later version.
+#
+# This mkbuild is distributed in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along with
+# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+# Place - Suite 330, Boston, MA 02111-1307, USA
+#
+
+#--------------------
+# Personal variables
+#--------------------
+# Author name
+[[SLACKBUILD AUTHOR]]="Silvio Rhatto"
+
+# Initials author name
+[[SLACKBUILD AUTHOR INITIALS]]="rha"
+
+#------------------------
+# Construction Variables
+#------------------------
+#
+# Complete URL address or URL base address ( without $SRC_NAME-$VERSION... )
+[[DOWNLOAD FOLDER URL]]="ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-2.1.22.tar.gz"
+
+#
+# Documentation files. Null ("") to auto-set commom doc-files:
+# NEWS TODO README AUTHORS INSTALL ChangeLog MAINTAINERS COPYING readme.*
+[[DOCUMENTATION FILES]]="AUTHORS COPYRIGHT LICENSE HISTORY doc/* ChangeLog NEWS README"
+
+#
+# ./configure options
+[[OTHER CONFIGURE ARGS]]="--sysconfdir=/etc --with-authdaemond=/usr/sbin/authdaemond"
+
+#
+# Install script
+[[REST OF DOINST.SH]]="config etc/rc.d/rc.saslauthd.new"
+
+#---------------------
+# Others changes
+#---------------------
+[[SIGNING KEY URL]]="ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/KEYS"
+
+# SlackBuild model
+[[SLACKBUILD MODEL]]="generic.mkSlackBuild"
+
+# SlackBuild PATH in Slack.Sarava tree
+[[SLACKBUILD PATH]]="dev/libs/cyrus-sasl"
+
+#---------------------
+# SlackBuild Sections
+#---------------------
+# Default sections:
+# head, set_variables, slkflags, start_structure, untar_source,
+# make_package, install_package, build_package
+# Warning: don't remove '#>>' and "#<<" tags.
+#>> Start SlackBuild Sections:
+ on: head
+ on: slackbuildrc
+ on: set_variables
+ on: slkflags
+ on: error_codes
+ on: start_structure
+off: create_build_user_and_group
+ on: download_source
+off: md5sum_download_and_check_0
+off: md5sum_download_and_check_1
+ on: gpg_signature_check
+ on: untar_source
+off: patch_source
+ on: configure
+ on: make_package
+ on: install_package
+ on: strip_binaries
+off: compress_manpages
+off: compress_info_files
+ on: copy_init_scripts
+ on: install_documentation
+ on: slackdesc
+off: move_config_files
+ on: postinstall_script
+ on: build_package
+ on: clean_builds
+#<< End SlackBuild Sections
+
+#------------------
+# Sections changes
+#------------------
+#>slackdesc
+cyrus-sasl-ldap: Cyrus-SASL
+cyrus-sasl-ldap:
+cyrus-sasl-ldap: Cyrus-SASL is a library that implements the SASL athentication
+cyrus-sasl-ldap: method. This build supports LDAP (needs openldap).
+cyrus-sasl-ldap:
+cyrus-sasl-ldap:
+cyrus-sasl-ldap:
+cyrus-sasl-ldap:
+cyrus-sasl-ldap:
+cyrus-sasl-ldap:
+cyrus-sasl-ldap:
+#<slackdesc
diff --git a/dev/libs/cyrus-sasl/rc.saslauthd.new b/dev/libs/cyrus-sasl/rc.saslauthd.new
new file mode 100644
index 0000000..8b69a71
--- /dev/null
+++ b/dev/libs/cyrus-sasl/rc.saslauthd.new
@@ -0,0 +1,45 @@
+#!/bin/sh
+# rc.saslauthd: start/stop/restart saslauthd
+#
+# saslauthd is a daemon process that handles plaintext authentication
+# requests on behalf of the SASL library. The CMU Cyrus SASL library
+# is a general purpose authentication library for sever and client
+# applications. It is mostly used to authenticate to mail servers.
+#
+# saslauthd should be started from the system boot scripts when going
+# to multi-user mode. When running against a protected authentication
+# database (e.g. the shadow mechanism), it must be run as the superuser.
+#
+
+saslauthd_start() {
+ # If saslauthd is not running, start it:
+ if [ ! -r /var/state/saslauthd/saslauthd.pid ]; then
+ # Use shadow authentication by default on Slackware:
+ echo "Starting SASL authentication daemon: /usr/sbin/saslauthd -a shadow"
+ /usr/sbin/saslauthd -a shadow
+ fi
+}
+
+saslauthd_stop() {
+ kill `cat /var/state/saslauthd/saslauthd.pid 2> /dev/null` 2> /dev/null
+ sleep 1
+}
+
+saslauthd_restart() {
+ saslauthd_stop
+ saslauthd_start
+}
+
+case "$1" in
+'start')
+ saslauthd_start
+ ;;
+'stop')
+ saslauthd_stop
+ ;;
+'restart')
+ saslauthd_restart
+ ;;
+*)
+ echo "usage $0 start|stop|restart"
+esac