Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 63149 Details for
Bug 98008
New package: net-mail/hula
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
new version: get_hula.sh (now includes all files needed)
get_hula.sh (text/plain), 6.78 KB, created by
Harold Aling
on 2005-07-11 08:05:47 UTC
(
hide
)
Description:
new version: get_hula.sh (now includes all files needed)
Filename:
MIME Type:
Creator:
Harold Aling
Created:
2005-07-11 08:05:47 UTC
Size:
6.78 KB
patch
obsolete
>#!/bin/bash > >setVariables() { >#Where to put the SVN source files (~80-90 MB) > SRCDIR="/root/hula" >#Where are your distfiles? ># DISTDIR=`portageq distdir` > DISTDIR="/opt/distfiles" >#Where to put the /net-mail/hula/* ebuild files ># OVERLAY=`portageq portdir_overlay|cut -d " " -f1` > OVERLAY="/usr/local/portage/overlay" >} > >setColors() { > C_NOCOLOR="\033[0m" > C_TITLE="\033[1;37m" > C_ACTION="\033[1;32m" > C_ERROR="\033[1;31m" >} > >checkVariables() { >#check if the above files/directories exist... > ERROR=0 > if [ ! -d ${DISTDIR} ]; then > echo -e "${C_ERROR}! \"${DISTDIR}\" does not exist!${C_NOCOLOR}" > let ERROR++ > fi > if [ ! -d ${OVERLAY} ]; then > echo -e "${C_ERROR}! \"${OVERLAY}\" does not exist!${C_NOCOLOR}" > let ERROR++ > fi > exitOnError ${ERROR} >} > >getRevision() { > if [ -f "${SRCDIR}/trunk/.svn/entries" ]; then > REVISION=`cat "${SRCDIR}/trunk/.svn/entries" | grep revision= | cut -d "\"" -f 2` > echo -e "${C_ACTION}*${C_NOCOLOR} Detected rev: ${REVISION}" > else > echo "! Hula source files not found in \"${SRCDIR}\"..." > echo "! Please run this script with the -u (update) or -a (all) parameter..." > exitOnError 1 > fi >} > >createSymlink() { > getRevision > if [ -d "${SRCDIR}/trunk/hula-r${REVISION}" ]; then > echo -e "${C_ACTION}*${C_NOCOLOR} Found a perfect symlink..." > else > echo -e "${C_ACTION}*${C_NOCOLOR} Removing old symlinks" > rm -f ${SRCDIR}/trunk/hula-r* > echo -e "${C_ACTION}*${C_NOCOLOR} Creating new symlink (hula-r${REVISION})" > cd ${SRCDIR}/trunk > ln -s hula hula-r${REVISION} > fi >} > >svnCheckout() { > echo -e "${C_TITLE}Updating from SVN${C_NOCOLOR}" > mkdir -p "${SRCDIR}" > cd "${SRCDIR}" > #echo -e "${C_ACTION}*${C_NOCOLOR} To check out without passwords, follow instructions on \"http://www.hula-project.org/Setting_Up_Public_Keys_for_forge.novell.com\"" > echo -e "${C_ACTION}*${C_NOCOLOR} Logging into SVN. If prompted for a password, enter \"anonymous\" (without quotes, twice)" > svn checkout svn+ssh://anonymous@forgesvn1.novell.com/svn/hula/trunk > exitOnError ${?} >} > >exitOnError() { > errorCode=${1} > if [ ${errorCode} -gt 0 ]; then > echo > echo -e "${C_ERROR}!!! Something went wrong! Errorcode: ${errorCode} !!!${C_NOCOLOR}" > echo > exit ${errorCode} > fi >} > >createTarball() { > echo -e "${C_TITLE}Creating tarball${C_NOCOLOR}" > createSymlink > echo -e "${C_ACTION}*${C_NOCOLOR} Creating \"${DISTDIR}/hula-r${REVISION}.tgz\" (~80-90 MB of source code)" > cd "${SRCDIR}/trunk" > tar zchf "${DISTDIR}/hula-r${REVISION}.tgz" hula-r${REVISION}/ > exitOnError ${?} > echo -e "${C_ACTION}*${C_NOCOLOR} Done..." >} > >updateEbuild() { > echo -e "${C_TITLE}Updating Ebuild${C_NOCOLOR}" > getRevision > cd ${SRCDIR} > echo -e "${C_ACTION}*${C_NOCOLOR} Creating \"${OVERLAY}/net-mail/hula\"" > mkdir -p "${OVERLAY}/net-mail/hula" > exitOnError ${?} > echo -e "${C_ACTION}*${C_NOCOLOR} Creating \"${OVERLAY}/net-mail/hula/hula-${REVISION}.ebuild\"" > createNewEbuild "${OVERLAY}/net-mail/hula/hula-${REVISION}.ebuild" > exitOnError ${?} > if [ ! -f "${OVERLAY}/net-mail/hula/files/hula" ]; then > echo -e "${C_ACTION}*${C_NOCOLOR} Creating \"${OVERLAY}/net-mail/hula/files/hula\"" > createNewInitscript "${OVERLAY}/net-mail/hula/files/hula" > exitOnError ${?} > fi > if [ ! -f "${OVERLAY}/net-mail/hula/files/define_spamassassin.patch" ]; then > echo -e "${C_ACTION}*${C_NOCOLOR} Creating \"${OVERLAY}/net-mail/hula/files/define_spamassassin.patch\"" > createNewSpamassassinPatch "${OVERLAY}/net-mail/hula/files/define_spamassassin.patch" > exitOnError ${?} > fi > echo -e "${C_ACTION}*${C_NOCOLOR} Creating digest for new ebuild (hula-${REVISION}.ebuild)" > cd "${OVERLAY}/net-mail/hula" > ebuild hula-${REVISION}.ebuild digest > /dev/null > exitOnError ${?} > echo -e "${C_ACTION}*${C_NOCOLOR} Done..." >} > >displayOptions() { > echo "Create \"hula\" tarball and ebuild from SubVersioN script..." > echo > echo "Usage: ${1} <option> [-nc]" > echo " -u: <u>pdate from SVN repository in \"${SRCDIR}\"" > echo " -t: Create <t>arball in \"${DISTDIR}\"" > echo " -e: Create <e>build in \"${OVERLAY}\"" > echo > echo " -nc: <n>o <c>olors. Disables the colored output" > echo > echo " -a: <a>ll: Update, build tarball and update ebuild" > echo >} > >createNewEbuild() { > cat << 'EOF' > ${1} ># Copyright 1999-2005 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >inherit eutils > >IUSE="spamassassin" >SLOT="0" >LICENSE="LGPL-2" >KEYWORDS="~x86" >DESCRIPTION="A calendar and webmail application, which includes its own MTA" >SRC_URI="http://kelley.ca/hulaTar/tars/hula-r${PV}.tgz" >HOMEPAGE="http://hula-project.org/" >DEPEND="dev-libs/openssl > >=sys-devel/automake-1.7 > dev-util/pkgconfig > spamassassin? ( mail-filter/spamassassin )" >MY_S=${WORKDIR}/${PN}-r${PV} > >src_compile() { > cd ${MY_S} > if use spamassassin; then > epatch ${FILESDIR}/define_spamassassin.patch || die > fi > ./autogen.sh \ > --prefix=/usr \ > --mandir=/usr/share/man \ > --localstatedir=/var || die > emake || die "emake failed" >} > >src_install() { > cd ${MY_S} > make DESTDIR=${D} install || die "make failed" > exeinto ${D}/etc/init.d > doexe ${FILESDIR}/hula >} > >pkg_postinst() { > echo > einfo "Before using Hula, you must run hulasetup." > einfo "For more information on hulasetup run 'hulasetup --help'." > echo > einfo "Run '/etc/init.d/hula start' to start Hula." > echo > einfo "The administration interface is located at 'http://your.domain:89/'" > echo > einfo "The default login credentials are:" > einfo " Username: admin" > einfo " Password: hula" > echo > einfo "Initial configuration howto:" > einfo " http://www.hula-project.org/Installation_tutorial#Initial_Configuration" > if use spamassassin; then > einfo "Spamassassin howto:" > einfo " http://www.hula-project.org/Setting_Up_SpamAssassin" > fi > echo >} >EOF >} > >createNewInitscript() { > cat << 'EOF' > ${1} >#!/sbin/runscript > >depend() { > need net > use logger dns >} > >start() { > ebegin "Starting hula" > start-stop-daemon --start --quiet --exec /usr/sbin/hulamanager -- -d > eend $? >} > >stop() { > ebegin "Stopping hula" > start-stop-daemon --stop --quiet --name hulamanager > eend $? >} >} >EOF >} > >createNewSpamassassinPatch() { > cat << 'EOF' > ${1} >--- src/agents/antispam/antispam.h.old 2005-07-05 14:52:30.000000000 +0200 >+++ src/agents/antispam/antispam.h 2005-07-05 14:52:50.000000000 +0200 >@@ -30,6 +30,8 @@ > #include <nmap.h> > #include <nmlib.h> > >+#define VERBOSE_SPAMASSASSIN >+ > #define PRODUCT_SHORT_NAME "hulaantispam.nlm" > > #define CONNECTION_TIMEOUT (15 * 60) >EOF >} > >if [ "${2}" != "-nc" ]; then setColors; fi > >setVariables >checkVariables > >case ${1} in > "-u" ) svnCheckout;; > "-t" ) createTarball;; > "-e" ) updateEbuild;; > "-a" ) svnCheckout && echo && createTarball && echo && updateEbuild;; > * ) displayOptions ${0};; >esac
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 98008
:
62669
|
62670
|
62671
|
62674
| 63149 |
63971