bincimap.patch
changeset 1 32f160a66da4
child 112 8d60a85d63dd
equal deleted inserted replaced
0:ad6bd3a91cab 1:32f160a66da4
       
     1 From 577622cdbeed98322b7a5468e0ffa4f464fef003 Mon Sep 17 00:00:00 2001
       
     2 From: Tomas Zeman <tzeman@volny.cz>
       
     3 Date: Thu, 29 Nov 2007 10:23:19 +0100
       
     4 Subject: [PATCH] bincimap-1.2.13-1-i686.fpm:
       
     5  * added
       
     6 
       
     7 ---
       
     8  source/custom/bincimap/FrugalBuild      |   30 ++++++++++++++++++++++++++++++
       
     9  source/custom/bincimap/bincimap.install |   23 +++++++++++++++++++++++
       
    10  2 files changed, 53 insertions(+), 0 deletions(-)
       
    11  create mode 100644 source/custom/bincimap/FrugalBuild
       
    12  create mode 100644 source/custom/bincimap/bincimap.install
       
    13 
       
    14 diff --git a/source/custom/bincimap/FrugalBuild b/source/custom/bincimap/FrugalBuild
       
    15 new file mode 100644
       
    16 index 0000000..74900bf
       
    17 --- /dev/null
       
    18 +++ b/source/custom/bincimap/FrugalBuild
       
    19 @@ -0,0 +1,30 @@
       
    20 +# Maintainer: Tomas Zeman <tzeman@volny.cz>
       
    21 +
       
    22 +pkgname=bincimap
       
    23 +pkgver=1.2.13
       
    24 +pkgrel=1
       
    25 +pkgdesc="A well designed, modular IMAP server for Maildir."
       
    26 +url="http://www.bincimap.org"
       
    27 +archs=(i686)
       
    28 +up2date="lynx $url -dump -nolist|grep 'latest stable'|head -1|sed -e 's/.*is \([0-9].*[0-9]\) .*$/\1/'"
       
    29 +depends=('openssl')
       
    30 +install="$pkgname.install"
       
    31 +backup=(etc/bincimap/bincimap.conf)
       
    32 +source=($url/dl/tarballs/1.2/$pkgname-${pkgver}final.tar.bz2)
       
    33 +sha1sums=('cdbc1bf95decbe76e0a218025c351b8174b4b485')
       
    34 +provides=('imap-server')
       
    35 +
       
    36 +build() {
       
    37 +	Fcd $pkgname-${pkgver}final
       
    38 +	./configure --prefix=/usr --sysconfdir=/etc/bincimap \
       
    39 +		--localstatedir=/var --with-ssl
       
    40 +	make || Fdie
       
    41 +	make DESTDIR=$Fdestdir install || Fdie
       
    42 +
       
    43 +	# clean up the files
       
    44 +	Fmkdir /usr/lib/bincimap
       
    45 +	Fmv /usr/libexec /usr/lib/bincimap/scripts
       
    46 +	Fmv /var/service /usr/lib/bincimap/supervise
       
    47 +	Frm /etc/bincimap/xinetd
       
    48 +}
       
    49 +# vim: ft=sh
       
    50 diff --git a/source/custom/bincimap/bincimap.install b/source/custom/bincimap/bincimap.install
       
    51 new file mode 100644
       
    52 index 0000000..ca80118
       
    53 --- /dev/null
       
    54 +++ b/source/custom/bincimap/bincimap.install
       
    55 @@ -0,0 +1,23 @@
       
    56 +post_install() {
       
    57 +  cat << EOF
       
    58 +
       
    59 +NOTE
       
    60 +----
       
    61 +bincimap must be invoked through either xinetd or daemontools.
       
    62 +Check the documentation on its webpage for more details.
       
    63 +
       
    64 +EOF
       
    65 +}
       
    66 +
       
    67 +post_upgrade() {
       
    68 +  /bin/true
       
    69 +}
       
    70 +
       
    71 +pre_remove() {
       
    72 +  /bin/true
       
    73 +}
       
    74 +
       
    75 +op=$1
       
    76 +shift
       
    77 +
       
    78 +$op $*
       
    79 -- 
       
    80 1.5.3.4
       
    81