Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=137c1673c4f035b8504afa83167e9073db877007

commit 137c1673c4f035b8504afa83167e9073db877007
Author: Krisztian VASAS <[EMAIL PROTECTED]>
Date:   Wed Aug 13 22:15:43 2008 +0200

dovecot-1.1.2-1-i686
- initial import / new package

diff --git a/source/network-extra/dovecot/FrugalBuild 
b/source/network-extra/dovecot/FrugalBuild
new file mode 100644
index 0000000..0ced9ea
--- /dev/null
+++ b/source/network-extra/dovecot/FrugalBuild
@@ -0,0 +1,39 @@
+# Compiling Time: 0.14 SBU
+# Maintainer: Krisztian VASAS <[EMAIL PROTECTED]>
+
+pkgname=dovecot
+pkgver=1.1.2
+pkgrel=1
+mainver=${pkgver%.*}
+pkgdesc="An open source IMAP and POP3 server, written with security primarily 
in mind."
+url="http://www.dovecot.org";
+depends=('openldap' 'cyrus-sasl-gssapiv2' 'libmysqlclient' 'libpq')
+makedepends=('mysql' 'postgresql')
+groups=('network-extra')
+archs=('i686')
+up2date="lynx -dump $url | grep 'Released v' | sed -ne 's/.*\ v\(.*\)\.$/\1/; 
1 p'"
+source=("${url}/releases/${mainver}/${pkgname}-${pkgver}.tar.gz" \
+       "rc.$pkgname" \
+       "rc.$pkgname-hu.po" )
+sha1sums=('7363e86a87369a3464637d8d097e22e2b40df3d1' \
+          'c463e6736b9e9ea4dc854ee247737d0fc113c7cb' \
+          'cfa557ab1d6d0931f8969ab797b1fbf31cecf88f')
+install="$pkgname.install"
+
+build()
+{
+       Fbuild  --with-mysql \
+               --with-pgsql \
+               --with-ssl=openssl \
+               --with-ldap \
+               --with-cyrus-sasls \
+               --with-gssapi \
+               --with-deliver \
+               --with-iopoll=epoll \
+               --with-moduledir=/usr/lib/dovecot/modules \
+               --sysconfdir=/etc/dovecot \
+               --docdir=/usr/share/doc/dovecot-${pkgver}
+       Frcd2
+}
+
+# optimization OK
diff --git a/source/network-extra/dovecot/dovecot.install 
b/source/network-extra/dovecot/dovecot.install
new file mode 100644
index 0000000..d764037
--- /dev/null
+++ b/source/network-extra/dovecot/dovecot.install
@@ -0,0 +1,29 @@
+post_install()
+{
+       mkdir -p /var/run/dovecot/login
+       chmod 750 /var/run/dovecot/login
+       chmod 700 /var/run/dovecot
+}
+
+pre_upgrade()
+{
+       /sbin/service dovecot stop
+}
+
+post_upgrade()
+{
+       post_install $1
+}
+
+pre_remove()
+{
+       /sbin/service dovecot stop
+       /usr/sbin/chkconfig --del rc.dovecot
+}
+
+op=$1
+shift
+
+$op $*
+
+# vim: ft=sh
diff --git a/source/network-extra/dovecot/rc.dovecot 
b/source/network-extra/dovecot/rc.dovecot
new file mode 100644
index 0000000..a7d499b
--- /dev/null
+++ b/source/network-extra/dovecot/rc.dovecot
@@ -0,0 +1,65 @@
+#!/bin/bash
+
+# (c) 2008 Krisztian VASAS <[EMAIL PROTECTED]>
+# rc.dovecot for Frugalware
+# distributed under GPL License
+
+# chkconfig: 2345 86 30
+# description: Startup/shutdown script for dovecot
+
+source /lib/initscripts/functions
+TEXTDOMAIN=dovecot
+TEXTDOMAINDIR=/lib/initscripts/messages
+
+actions=(restart start stop)
+daemon=$"dovecot"
+DAEMON=/usr/sbin/dovecot
+
+if [ ! -f /etc/dovecot/dovecot.conf ]; then
+       echo $"Could not find: /etc/dovecot/dovecot.conf"
+       exit 0
+fi
+
+# The init script should do nothing if dovecot is being run from inetd
+for p in `sed -r "s/^ *(([^:]+|\[[^]]+]|\*):)?(pop3s?|imaps?)[ \t].*/\3/;t;d" 
/etc/inetd.conf`
+do
+       for q in `sed -r "s/^ *protocols[ \t]*=[ 
\t]*(([^\"]*)|\"(.*)\")/\2\3/;t;d" /etc/dovecot/dovecot.conf`
+       do
+               if [ $p = $q ]; then
+                       echo $"dovecot is running from inetd"
+                       exit 0
+               fi
+       done
+done
+
+rc_start()
+{
+       start_msg
+       if grep protocols /etc/dovecot/dovecot.conf | sed 's/#.*$//' | tr -d 
'"' | egrep -q '[^#]*(\bpop3s?\b|\bimaps?\b)';
+       then
+               if [ -x /usr/libexec/dovecot/imap-login -a -x 
/usr/libexec/dovecot/imap ] \
+                       || [ -x /usr/libexec/dovecot/pop3-login -a -x 
/usr/libexec/dovecot/pop3 ];
+               then
+                       $DAEMON
+                       ok $?
+               fi
+       fi
+       ok 999
+}
+
+rc_status()
+{
+       echo "Not implemented"
+}
+
+rc_stop()
+{
+       stop_msg
+       if [ -f "$PIDFILE" ]; then
+               pid=`cat $PIDFILE`
+               kill $pid
+       fi
+       ok $?
+}
+
+rc_exec $1
diff --git a/source/network-extra/dovecot/rc.dovecot-hu.po 
b/source/network-extra/dovecot/rc.dovecot-hu.po
new file mode 100644
index 0000000..a909af4
--- /dev/null
+++ b/source/network-extra/dovecot/rc.dovecot-hu.po
@@ -0,0 +1,28 @@
+# Hungarian translation of rc.dovecot.
+# Copyright (C) 2008 rc.dovecot'S COPYRIGHT HOLDER
+# This file is distributed under the same license as rc.dovecot.
+# Krisztian VASAS <[EMAIL PROTECTED]>, 2008.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: rc.dovecot\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2008-08-07 16:43+0200\n"
+"PO-Revision-Date: 2008-08-07 17:25+0200\n"
+"Last-Translator: Krisztian VASAS <[EMAIL PROTECTED]>\n"
+"Language-Team: Krisztian VASAS <[EMAIL PROTECTED]>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-2\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: rc.dovecot:15
+msgid "dovecot"
+msgstr "dovecot"
+
+#: rc.dovecot:19
+msgid "Could not find: /etc/dovecot/dovecot.conf"
+msgstr "Nem található a /etc/dovecot/dovecot.conf fájl"
+
+#: rc.dovecot:29
+msgid "dovecot is running from inetd"
+msgstr "A dovecot inetd-böl fut"
diff --git a/source/network-extra/dovecot/rc.dovecot.pot 
b/source/network-extra/dovecot/rc.dovecot.pot
new file mode 100644
index 0000000..5cd2b46
--- /dev/null
+++ b/source/network-extra/dovecot/rc.dovecot.pot
@@ -0,0 +1,29 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <[EMAIL PROTECTED]>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2008-08-07 16:43+0200\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <[EMAIL PROTECTED]>\n"
+"Language-Team: LANGUAGE <[EMAIL PROTECTED]>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: rc.dovecot:15
+msgid "dovecot"
+msgstr ""
+
+#: rc.dovecot:19
+msgid "Could not find: /etc/dovecot/dovecot.conf"
+msgstr ""
+
+#: rc.dovecot:29
+msgid "dovecot is running from inetd"
+msgstr ""
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to