diff options
-rw-r--r-- | app/office/broffice/Manifest | 30 | ||||
-rw-r--r-- | app/office/broffice/broffice.mkbuild | 10 | ||||
-rw-r--r-- | mail/mta/postfix/Manifest | 25 | ||||
-rw-r--r-- | mail/mta/postfix/postfix.mkbuild | 218 | ||||
-rw-r--r-- | mail/mta/postfix/rc.postfix | 59 | ||||
-rw-r--r-- | mail/mta/postfix/rc.postfix.new | 59 |
6 files changed, 381 insertions, 20 deletions
diff --git a/app/office/broffice/Manifest b/app/office/broffice/Manifest index 5a95c99..637044f 100644 --- a/app/office/broffice/Manifest +++ b/app/office/broffice/Manifest @@ -2,22 +2,22 @@ Hash: SHA1 DIST BrOo_3.0.1_LinuxIntel_install_pt-BR.tar.gz 149194596 MD5 68883c544b9686a3cc34876004c65bac RMD160 7a2f71487a4d6fafb9b021249640bc8877df906d SHA1 1ec774eeac8542ba2d66a2c3759faffdfef7bd65 SHA256 ba4e96f4bfa3b7a9b252965c082b97cbefe29c4a955b42661dffb128ae7f5887 SHA512 c896639e20f8792b3df68138d2efafc56cee08367a0f85d6d83838ef8405aae49c4b85c1bc5880963bb09c771abb41056a92da24761843321a774dba1c965c23 -MKBUILD broffice.mkbuild 5381 MD5 a8deaed90d372176b8c8ac25b232cebf RMD160 e76688dc457082558841e654cdb1695ee7473021 SHA1 e7462b2b7457e7c68b9e5c1f47f85a227c501069 SHA256 cbec92704f448a7c603bffcb4906421cc15f745c6ef8223e75c08f505561db8d SHA512 4a8cc640ee5257c5e9311f35158ffbe6718b1f1e0c837286a00e1e560ff90e0cbc7c005e2184d0209883709760473bf7f25d07027e0ee0c29e872b8fc1d0a16b -SLACKBUILD broffice.SlackBuild 5058 MD5 bf184861c03d39ac2c33f74bb32bf5d7 RMD160 819f059bb9a8acd46519df6074e303f487806892 SHA1 027b5088f2ed17bb592066bf94d394a8a62038b2 SHA256 ef2d9ded3807cbca7dd4e6fdc878324b05cd25a16375f0c523662a437e611dea SHA512 787e395ef095385e3b8e064fabaedcb135585e76d1d4398bd2f7b9a52ec907b800b3028cdb8b40b78b6e737676ba96f1ab1565b6f5e89c42a23e4d08c84b3109 +MKBUILD broffice.mkbuild 5365 MD5 015c267bd2cc89ab64499682d14ab563 RMD160 41dfd4abe481990a8caefbe1524dead06174c2c7 SHA1 ea538c04e6413c90290643f4073d64f13e99b12b SHA256 9574d30462b1c46e6acccf4ee90415d67b472fc969c7a3ff024944d1b1e8e1ec SHA512 729ac7833592eeb0b21e7cc8e36ac5b385218ff28fe724f9b00fc1e06f78f740d7dd55b60788313a2abc8b2ce00bd7f24810c24272586ed4c8a724c5eb8bddb9 +SLACKBUILD broffice.SlackBuild 5042 MD5 d2e38d8ef542942d09292e127cc3e9c3 RMD160 865e22a8c46fd64bb7b0994d62f3138e02f03634 SHA1 4be5808e3e0617f91335482158888a03660bc91e SHA256 cd09064d460096f9766a974d95655f2c567fbcf4f310cc0363c3f6d265483468 SHA512 30cd29dc9ba0be0157342c2b2faae011af13fc16d6e15c873de59ebffc1b376a9bc1900d4987ef95e947e5356bb59ec3723a5864648ca1efb763fc9387fcdbfb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) -iQIcBAEBAgAGBQJJ82moAAoJEEHL93ESzgeiJC8QAImaZ4MH/UjGR8fRMnuf+i5d -oZbZgY2oOFuJEBJWvu8iganJF+H99D7K+dpEiqgkznXQ0AcYJwi6jB5fun3ocTIq -ONyEngQNsc7SIxOOHDhNRHyeohTqDYGI7TPn6/VErAck4UI0zLU9yLG1Meybtohj -X+gX6iWyqUmZB6Q64czwHdp3/Ri8KZ0JuTgO1/E/d5NxAXlkwgMsNmb4zrvRfulI -p6O8Ts+9bW6/NOASTAXqjrOvlcgY8sNEjTYpbeTlVtFK4xePe7PknbY5HByEAmW7 -R0GMEP4sYreYlBpgB+XoTgLE5na7Va/R9/Q0ntcMs/YZBceJ9sTOFjOw3DkjTXsR -BV//VpYVP4O1fLxEiN995HPOQUa9pCqWXw6ev3ATOQqn+1bvMxNOVP2Kg2VeIg9U -VBQoalanQrRGoU0J10fS7GPGHtm2VVtzSoBFKHRuaTC6tYBN136Pm9GgnGuujzl+ -l4foXaQEUr4iEwRCtfsg+w63Iuv5SaMu0kQw370XDyYPiqMhcKuN6sTCNoX0NzGq -dPcRKm2F52P7kBX88cYUxRwDTAi5DVGCqFfqMp7Gdibiv+avC0MxDOHLNl0zdmEh -WU4ndIOij/BNl+Qp5HF7D/IP00gncIbD18QrSAGxwtPnDOGfuaS2Zey7RC/y1G9J -amWKsufXYR4OnBspI+Pa -=sEEy +iQIcBAEBAgAGBQJJ9bjkAAoJEEHL93ESzgeiCQIP/R4cqiBCUwWGMtx3+1n90yLS +yxwt0kp29Wd3EfErBjYecaBMtNaTfnOTmL7x2/zeuSy7+r0hrJyUtuB6eDDFlvvS +Dyd6cbbnAEdX8PudS0pAeAt25bXmsniB6uj9nEwlmQWU0HJ344F3hzQ3uZ52OxiK +D7/5tVkWMK+bxfemGbXgYgQn+yIe8Rct1L09jhtK9yruZ1MpAucKTscfbGjrFiqh +/88qIhNsyjmnG878Imd5jARx1Oz4mjTw/eFe3EA5XmbS0A63NVmwxXW4LyCFVp/F +26zyXauAuoPkIuDEWSji6Y9u6rU0xTJ4U3oiICjolmmn2U7H4UVDV5/oaS8br3y7 +h2uk0M1waS87eJ5+R+txdwrzKQfY1+0yP6eytPCWA1jhmFceU4gm0kYK17raXIG3 +3yNH39CU24SvraN0DbxumUg5lSOTkn+kJajbJGlAfopJIogrgfzjHvkbJIMQzALd +gSz69X/AwEBKmVexdZPXZM2VYFJS4xTOwxuVJnH8m4YS0mYp5BBbFHplUmdRmzo0 ++d8X2gr/1ImZovYnzKiF2unT2H5Ffm1WWWOAKMzzMjjDH9iJHReYBTM38yRw21NE +MRXqXyJEdPgzcreXzivr98+rwZ5mc2Xs1PbrZnLCry8vrAhkYS2CUh0YgN6lXv2i +Y0Ixb9MBQMmNkrK8OQpn +=/owU -----END PGP SIGNATURE----- diff --git a/app/office/broffice/broffice.mkbuild b/app/office/broffice/broffice.mkbuild index 77dd326..54c776b 100644 --- a/app/office/broffice/broffice.mkbuild +++ b/app/office/broffice/broffice.mkbuild @@ -70,7 +70,7 @@ # # PREFIX. Default /usr -[[PREFIX]]="/usr/share/broffice.org2.4" +[[PREFIX]]="/usr/share/broffice.org" # # Number of jobs @@ -170,20 +170,20 @@ rm *.rpm 2>/dev/null # Convert links to KDE cd desktop-integration -echo -e "\ninstall broffice.org-slackware-menus-2.4*.rpm" -tar xvf broffice.org-slackware-menus-2.4*.tgz -C $PKG || exit $ERROR_TAR +echo -e "\ninstall broffice.org-slackware-menus-*.rpm" +tar xvf broffice.org*-slackware-menus-*.tgz -C $PKG || exit $ERROR_TAR rm *.rpm *.deb 2>/dev/null cd .. # Change opt directory mkdir -p $PKG/usr/share -mv $PKG/opt/broffice.org2.4 $PKG/usr/share/ +mv $PKG/opt/broffice.org* $PKG/usr/share/ mv $PKG/opt/kde/share/* $PKG/usr/share/ rm -rf $PKG/opt # Change doinstall install directory -sed 's/\/opt\/broffice.org2.4/\/usr\/share\/broffice.org2.4\//' $PKG/install/doinst.sh > $PKG/install/doinst.sh.new +sed 's/\/opt\/broffice.org/\/usr\/share\/broffice.org\//' $PKG/install/doinst.sh > $PKG/install/doinst.sh.new mv $PKG/install/doinst.sh.new $PKG/install/doinst.sh #<make_package 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 |