aboutsummaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorrhatto <rhatto@18ef50b8-d735-4ccd-97c1-689132df3dd9>2009-04-29 02:26:32 +0000
committerrhatto <rhatto@18ef50b8-d735-4ccd-97c1-689132df3dd9>2009-04-29 02:26:32 +0000
commitdcc2b6215ebdd71dbca7d1a43a2889712207e97a (patch)
tree82ce738204e9c8d9cfd59bdb843d3b044d3e717b /mail
parent05a70305d2268c58de62fb4025654cfa6d98d9ce (diff)
downloadmkbuilds-dcc2b6215ebdd71dbca7d1a43a2889712207e97a.tar.gz
mkbuilds-dcc2b6215ebdd71dbca7d1a43a2889712207e97a.tar.bz2
postfix: adding postfix mkbuild
git-svn-id: svn+slack://slack.fluxo.info/var/svn/mkbuilds@443 18ef50b8-d735-4ccd-97c1-689132df3dd9
Diffstat (limited to 'mail')
-rw-r--r--mail/mta/postfix/Manifest25
-rw-r--r--mail/mta/postfix/postfix.mkbuild218
-rw-r--r--mail/mta/postfix/rc.postfix59
-rw-r--r--mail/mta/postfix/rc.postfix.new59
4 files changed, 361 insertions, 0 deletions
diff --git a/mail/mta/postfix/Manifest b/mail/mta/postfix/Manifest
new file mode 100644
index 0000000..d329a4c
--- /dev/null
+++ b/mail/mta/postfix/Manifest
@@ -0,0 +1,25 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+DIST postfix-2.5.6.tar.gz 3157891 MD5 ec2cb63b53f5f36c3ca91da8f3bc9407 RMD160 a6d41ac85003b6c24d7400cb8de0d95abecfbfeb SHA1 b6aae7ec9996937c9a901f41c6c262eceba44479 SHA256 8e0178cc1540cb349ed341ae717f0f9ef663e85136db2889e6953bdcd5992abb SHA512 b48e81c05073d807fdef5df1be93daec480c265002abe31281fb06042b08363c5b6bc1b59852990bbb942d3e06c46d1b709a31277df511813edd6b6c7f0f46c2
+MISC rc.postfix 1442 MD5 b6911ab3fce19b796ee4205156b53697 RMD160 e6f914bc44e31a0e1a62c4ec0977db2bfa6eab44 SHA1 d182c64f0ba60da62cbeae854d2cf952a25d9aab SHA256 4ca12082b275293ce20fa6a6531c571ec9bb78a748e87200eea727ab65300369 SHA512 f879af55737c4f89761cba44977ab1a72df58c7bcf24d0b19f4b2cc3084ac4d702652aa9440adbbd0cfb1248a952eed102b9563d825f646d2a030b965a35ca43
+MISC rc.postfix.new 1442 MD5 b6911ab3fce19b796ee4205156b53697 RMD160 e6f914bc44e31a0e1a62c4ec0977db2bfa6eab44 SHA1 d182c64f0ba60da62cbeae854d2cf952a25d9aab SHA256 4ca12082b275293ce20fa6a6531c571ec9bb78a748e87200eea727ab65300369 SHA512 f879af55737c4f89761cba44977ab1a72df58c7bcf24d0b19f4b2cc3084ac4d702652aa9440adbbd0cfb1248a952eed102b9563d825f646d2a030b965a35ca43
+MKBUILD postfix.mkbuild 7243 MD5 302275f96fb8b5c671b8d59dc0691f51 RMD160 a4b0588b545e1be2629b5a19ba255ea16daee059 SHA1 cf9337ded1eecb1e1bcab20541fe0bdb4bcf778f SHA256 d3553e538a5dd8cdc6b73c5dbbcc2767923d667e3bd397b022dfe9e6206690b9 SHA512 c263e152134c5cc0a26224490a50c45dead783e11635432ae7e61cd5dd07ca0e4b1ac9caf95b3884ef79567cfb9c84dbca8c0bab49cf5642cce0edb51c3627a4
+SLACKBUILD postfix.SlackBuild 11075 MD5 68fcb89615e6be142867310b63329972 RMD160 c8954b42b7b80ad2bf5ad03dac5bdd203f6c2c04 SHA1 95d9167fd2713618ad2d415f8aee9b1f82528180 SHA256 a64f69a195eea2f7f5c914d52594c48d3baa781653881ec2ba40ec45ee9fc355 SHA512 38b1e8628ba5b1602d3dac8942d5856ace8ccd5742ab61465ac3526f45fed90e77e933e79e084bca7147d77aabc68620a3e89799520df8d99d6efe1907462adb
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.9 (GNU/Linux)
+
+iQIcBAEBAgAGBQJJ97t8AAoJEEHL93ESzgeieC0P/1p7FGdYM19qTcfzRZbdP6o6
+ddcC++8Drh/0TFDplPX2b15I2Z9n6qqgim3/l+q/xGE7v0Ye5OUk8b2GSGnDy1MJ
+owhekCvLpVOLFOso+nE/8M4DlcP1970a2/c6EM+SkarSMgIlOtdkDMTL+1hnIDF+
+/MKGPAdTfrSjeMV+SK+tJ8SDo+k40sd2uLrHNnBDtOMpFmgVfNAy6OSjqfaqh2pL
+lEguMEcwFlCHuaeSI/EeyeibvVAj/N76Q+pSALDc4iRVWs+2izV8N3XAvOEz6Ak0
+i0Dwo6dcpKe7PHJbHS5oO6VTHKJIERFhHoaOrMklGfL65MwcGkroizAAxGI9zVkV
+Odyz+o9zS8KwlTNIyrzL+S/k8O3VzfUuntA3n61B2uatw+aQ7LGFwVnr7PATWUEK
+VPaYu5WnuFv8cGAQuG3qz3OglzJEH/XCaJbK2LtNZ4GYcpUzpu0GUwqY8SGhO9Gm
+b1nrEgRAe6XDQvXxCGjghzKdRlYltfIuCR99nascllneYuc8TmTm6YiYX1ETjTuz
+qVG4gzq/S1qg/HJGKD8Q+swWlJ6Zri/ynOl/vQiXTF/Te1+qjUowoaOZAc0VqhBc
+npfFgJwRzRGKLLQLtN8sofNIluwL0TNPf0tKHe4S+u9PH1+BHuE5uc3s0mk3ww9o
+XXNPnjND0lDSank7amB7
+=pvyZ
+-----END PGP SIGNATURE-----
diff --git a/mail/mta/postfix/postfix.mkbuild b/mail/mta/postfix/postfix.mkbuild
new file mode 100644
index 0000000..65264b7
--- /dev/null
+++ b/mail/mta/postfix/postfix.mkbuild
@@ -0,0 +1,218 @@
+#
+# 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
+#
+# Version 0.9.0 - Alves ( rudsonalves at yahoo d0t com d0t br )
+# Version $Rev: 803 $ - $Author: rhatto $
+
+#--------------------
+# 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]]="http://ftp.unicamp.br/pub/postfix/official/postfix-2.5.6.tar.gz"
+
+# Source base name. if different from package name. Null ("") to default value.
+# Auto-set, get SRC_NAME from URL: http://.../$SRC_NAME-$VERSION.tar.$EXTENSION'
+[[SOURCE NAME]]=""
+
+# Package name. Null ("") to auto-set
+# Auto-set, get PKG_NAME from URL downcase(SRC_NAME): http://.../$SRC_NAME-$VERSION.tar.$EXTENSION'
+[[PACKAGE NAME]]=""
+
+#
+# Package default ARCH
+# Default set is i486
+[[ARCH]]=""
+
+#
+# Package version. Null ("") to auto-set.
+# Auto-set, get VERSION from URL: http://.../$SRC_NAME-$VERSION.tar.$EXTENSION'
+[[VERSION]]=""
+
+#
+# Package extension. Null ("") to auto-set
+# Auto-set, get EXTENSION from URL: http://.../$SRC_NAME-$VERSION.tar.$EXTENSION'
+[[EXTENSION]]=""
+
+#
+# Build number.
+# Auto-set to default 1
+[[BUILD NUMBER]]=""
+
+#
+# Source Name construction string
+# Default value is: $SRC_NAME-$VERSION.tar.$EXTENSION
+[[SOURCE NAME CONSTRUCTION STRING]]="$SRC_NAME-$VERSION.tar.$EXTENSION"
+
+#
+# Unpacker programa ("") to auto-set. Default "tar"
+# Unpacke Flags ("") to auto-set. Default flags to tar "--no-same-owner --no-same-permissions -xvf"
+[[UNPACKER]]=""
+[[UNPACKER FLAGS]]=""
+
+#
+# Dependency list input
+# Enter string: "dependency_1 [condiction_1] [versio_1]: dependency_2 [condiction_2] [versio_2]"
+# Example:
+[[SLACK REQUIRED]]=""
+
+#
+# Decompress program
+# gz, tgz, bz2, set null ("") to auto-set
+# Auto-set, get DECOMPRESSOR from URL EXTENSION: http://.../$SRC_NAME-$VERSION.tar.$EXTENSION'
+[[DECOMPRESSOR]]=""
+
+#
+# Decompress check flag
+# gz, tgz, bz2, set null ("") to auto-set
+[[DECOMPRESSOR TEST FLAG]]=""
+
+#
+# Documentation files. Null ("") to auto-set commom doc-files:
+# NEWS TODO README AUTHORS INSTALL ChangeLog MAINTAINERS COPYING readme.*
+[[DOCUMENTATION FILES]]="AUTHORS COPYING HACKING NEWS README TODO INSTALL AAAREADME COMPATIBILITY COPYRIGHT HISTORY LICENSE RELEASE_NOTES* TLS_* US_PATENT_6321267"
+
+#
+# ./configure options
+[[OTHER CONFIGURE ARGS]]=""
+
+#
+# PREFIX. Default /usr
+[[PREFIX]]="/usr"
+
+#
+# Number of jobs
+[[NUMBER OF JOBS]]=""
+
+#---------------------
+# Others changes
+#---------------------
+#[[MD5SUM CODE]]=""
+#[[MD5SUM EXTENSION]]=""
+#[[SIGNING KEY]]=""
+#[[SIGNING KEY URL]]=""
+#[[SIGNING KEY ID]]=""
+#[[SIGNING URL]]=""
+[[CONFIG FILES]]="etc/postfix/access etc/postfix/aliases etc/postfix/canonical etc/postfix/generic etc/postfix/header_checks etc/postfix/main.cf etc/postfix/master.cf etc/postfix/relocated etc/postfix/transport etc/postfix/virtual"
+#[[PATCH URLS]]=""
+[[REST OF DOINST.SH]]="config etc/postfix/access.new ; config etc/postfix/aliases.new ; config etc/postfix/canonical.new ; config etc/postfix/generic.new ; config etc/postfix/header_checks.new ; config etc/postfix/main.cf.new ; config etc/postfix/master.cf.new ; config etc/postfix/relocated.new ; config etc/postfix/transport.new ; config etc/postfix/virtual.new; config etc/rc.d/rc.postfix.new"
+[[PATCH FILES]]=""
+[[NUMBER OF PREFIX SLASHES TO STRIP]]="1"
+
+# SlackBuild model
+[[SLACKBUILD MODEL]]="generic.mkSlackBuild"
+
+# SlackBuild PATH in Slack.Sarava tree
+#[[SLACKBUILD PATH]]="mail/mta/postfix"
+[[SLACKBUILD PATH]]="mail/mta/postfix"
+
+#---------------------
+# 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: download_patches
+off: svn_source
+off: git_source
+off: md5sum_download_and_check_0
+off: md5sum_download_and_check_1
+off: gpg_signature_check
+ on: manifest_check
+ on: untar_source
+ on: patch_source
+off: configure
+ on: make_package
+ on: install_package
+ on: strip_binaries
+off: compress_manpages
+off: compress_info_files
+ on: copy_init_scripts
+off: copy_config_files
+ on: install_documentation
+ on: slackdesc
+ on: move_config_files
+ on: postinstall_script
+off: slack_required
+ on: build_package
+ on: clean_builds
+#<< End SlackBuild Sections
+
+#------------------
+# Sections changes
+#------------------
+#>slackdesc
+postfix: Postfix (an alternative to the widely-used Sendmail program.)
+postfix:
+postfix: Postfix attempts to be fast, easy to administer, and secure, while at
+postfix: the same time being sendmail compatible enough to not upset existing
+postfix: users. Thus, the outside has a sendmail-ish flavor, but the inside is
+postfix: completely different.
+postfix:
+postfix: This is postfix compiled with pcre, mysql, sasl, tls, ldap and
+postfix: patched with VDA and postfix-anon.
+postfix:
+postfix:
+#<slackdesc
+
+#>make_package
+# Compile
+DOCDIR=/usr/doc/${PKG_NAME}-${VERSION}
+READMEDIR=${DOCDIR}/README_FILES
+HTMLDIR=${DOCDIR}/HTML
+MANDIR=/usr/man
+
+make -f Makefile.init makefiles CCARGS="-DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl/ -DHAS_MYSQL -I/usr/include/mysql/ -I/usr/include -DHAS_LDAP -DUSE_TLS -I/usr/include/gnutls/ -DHAS_PCRE -I/usr/include" AUXLIBS="-L/usr/lib -lsasl2 -L/usr/lib/mysql/ -lmysqlclient -lz -lm -L/usr/lib -lssl -lcrypto -L/usr/lib -lpcre -L/usr/lib -lldap -L/usr/lib -llber" || exit $ERROR_CONF
+
+make || exit $ERROR_MAKE
+#<make_package
+
+#>install_package
+# Install
+make non-interactive-package \
+ install_root=$PKG \
+ tempdir=$TMP/$PKG_NAME-temp \
+ manpage_directory=${MANDIR} \
+ readme_directory=${READMEDIR} \
+ html_directory=${HTMLDIR} \
+ config_directory=/etc/postfix \
+ sample_directory=/etc/postfix/sample \
+ daemon_directory=/usr/libexec/postfix \
+ command_directory=/usr/sbin/ \
+ queue_directory=/var/spool/postfix \
+ sendmail_path=/usr/sbin/sendmail \
+ newaliases_path=/usr/sbin/newaliases \
+ mailq_path=/usr/sbin/mailq \
+ mail_owner=postfix \
+ setgid_group=postdrop \
+ || exit $ERROR_INSTALL
+#<install_package
diff --git a/mail/mta/postfix/rc.postfix b/mail/mta/postfix/rc.postfix
new file mode 100644
index 0000000..4aa3a6c
--- /dev/null
+++ b/mail/mta/postfix/rc.postfix
@@ -0,0 +1,59 @@
+#!/bin/bash
+# Copyright 2006, Alan Hicks, Lizella, GA
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+
+postfix_start()
+{
+ postfix start
+}
+
+postfix_stop()
+{
+ postfix stop
+}
+
+postfix_restart()
+{
+ postfix_stop
+ postfix_start
+}
+
+postfix_reload()
+{
+ postfix reload
+}
+
+case $1 in
+'start')
+ postfix_start
+ ;;
+'stop')
+ postfix_stop
+ ;;
+'restart')
+ postfix_restart
+ ;;
+'reload')
+ postfix_reload
+ ;;
+*)
+ echo "usage $0 start|stop|restart|reload"
+esac
diff --git a/mail/mta/postfix/rc.postfix.new b/mail/mta/postfix/rc.postfix.new
new file mode 100644
index 0000000..4aa3a6c
--- /dev/null
+++ b/mail/mta/postfix/rc.postfix.new
@@ -0,0 +1,59 @@
+#!/bin/bash
+# Copyright 2006, Alan Hicks, Lizella, GA
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+
+postfix_start()
+{
+ postfix start
+}
+
+postfix_stop()
+{
+ postfix stop
+}
+
+postfix_restart()
+{
+ postfix_stop
+ postfix_start
+}
+
+postfix_reload()
+{
+ postfix reload
+}
+
+case $1 in
+'start')
+ postfix_start
+ ;;
+'stop')
+ postfix_stop
+ ;;
+'restart')
+ postfix_restart
+ ;;
+'reload')
+ postfix_reload
+ ;;
+*)
+ echo "usage $0 start|stop|restart|reload"
+esac