#!/bin/bash ## src2pkg script for: cyrus-sasl ## Auto-generated by src2pkg-2.1 ## src2pkg - Copyright 2005-2009 Gilbert Ashley SOURCE_NAME='cyrus-sasl-2.1.23.tar.xz' NAME='cyrus-sasl' # Use ALT_NAME to override guessed value VERSION='2.1.23' # Use ALT_VERSION to override guessed value # ARCH='' BUILD='2' # PRE_FIX='usr' # Any extra options go here: EXTRA_CONFIGS="--libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc --localstatedir=/var --mandir=$mandir \ --disable-static --enable-shared \ --with-plugindir=/usr/lib${LIBDIRSUFFIX}/sasl2 \ --with-configdir=/etc/sasl2 \ --with-plugindir=/usr/lib$LIBDIRSUFFIX/sasl2 \ --enable-login --disable-anon \ --without-ldap --with-saslauthd" # --with-gdbm --with-dblib=gdbm # --with-saslauthd=/var/lib/sasl2 # --with-authdaemond=/var/run/authdaemon.courier-imap/socket ## Do not remove *.la files as they are (probably) needed to load the plugins REMOVE_LIBTOOL_FILES="NO" # all the patches except the first one come from Mandriva # To build any extra plugins, refer to the cyrus-sasl.spec file # in the patches for build instructions for them and/or other options PATCHLIST='cyrus-sasl-patches/cyrus-sasl-2.1.22-gcc44.patch #cyrus-sasl-patches/cyrus-sasl-doc.patch cyrus-sasl-patches/cyrus-sasl-2.1.19-no_rpath.patch cyrus-sasl-patches/cyrus-sasl-2.1.15-lib64.patch cyrus-sasl-patches/cyrus-sasl-2.1.20-gssapi-dynamic.patch cyrus-sasl-patches/cyrus-sasl-2.1.19-pic.patch cyrus-sasl-patches/cyrus-sasl-latest_bdb.diff # cyrus-sasl-patches/cyrus-sasl-2.1.22-sed_syntax.diff cyrus-sasl-patches/cyrus-sasl-2.1.21-sizes.patch cyrus-sasl-patches/cyrus-sasl-2.1.22-digest-commas.patch cyrus-sasl-patches/cyrus-sasl-2.1.22-automake-1.10.patch cyrus-sasl-patches/cyrus-sasl-2.1.22-rimap.patch cyrus-sasl-patches/cyrus-sasl-2.1.22-warnings.patch cyrus-sasl-patches/0006_library_mutexes.dpatch cyrus-sasl-patches/0012_xopen_crypt_prototype.dpatch ' MAKE_COMMAND="make sasldir=/usr/lib${LIBDIRSUFFIX}/sasl2" INSTALL_LINE="make sasldir=/usr/lib${LIBDIRSUFFIX}/sasl2 install" # Optional function replaces configure_source, compile_source, fake_install # To use, uncomment and write/paste CODE between the {} brackets. # build() { CODE } # Get the functions and configs . /usr/libexec/src2pkg/FUNCTIONS ; # Execute the named packaging steps: pre_process find_source make_dirs unpack_source fix_source_perms ( cd $SRC_DIR # fix for possible lib64 paths if [[ "$ARCH" = "x86_64" ]] ; then sed "s|/lib\b|lib$LIBDIRSUFFIX/|g" configure.in fi rm -f configure rm -f config/ltconfig config/libtool.m4 libtoolize -f -c aclocal -I config -I cmulocal automake -a -c -f autoheader autoconf -f pushd saslauthd rm -f config/ltconfig libtoolize -f -c aclocal -I ../config -I ../cmulocal automake -a -c -f autoheader autoconf -f ) AUTORECONF=NO configure_source # compile_source # If used, the 'build' function replaces these 3 fake_install # #( cd $SRC_DIR # make sasldir=/usr/lib${LIBDIRSUFFIX}/sasl2 # make sasldir=/usr/lib${LIBDIRSUFFIX}/sasl2 install DESTDIR=$PKG_DIR #) mkdir -p $PKG_DIR/var/state/saslauthd mkdir -p $PKG_DIR/etc/rc.d # zcat $CWD/rc.saslauthd.gz > $PKG_DIR/etc/rc.d/rc.saslauthd.new cat $PATCHES_DIR/cyrus-sasl-patches/rc.saslauthd.new > $PKG_DIR/etc/rc.d/rc.saslauthd.new # Fix sloppy man page installation: # rm -r $PKG_DIR/usr/man/cat8 cat $SRC_DIR/saslauthd/saslauthd.mdoc > $MAN_DIR/man8/saslauthd.8 fix_pkg_perms strip_bins create_docs compress_man_pages make_description make_doinst make_package post_process ## See the documentation for more help and examples. Below are some of # the most common Extras and Options for easy cut-and-paste use. # DOCLIST='' PATCHLIST='' INSTALL_TYPE='' # CONFIG_COMMAND='' MAKE_COMMAND='' INSTALL_LINE='' # When editing src2pkg scripts to add custom code, use these variables # to refer to the current directory, the sources or the package tree: # $CWD (current directory), $SRC_DIR (sources), $PKG_DIR (package tree) # Other commonly-used directories include: $DOC_DIR (document directory) # $MAN_DIR (man-page directory) $DATA_DIR (shared-data directory)