diff options
-rw-r--r-- | packages/netpbm/netpbm-10.28/ppmtojpeg.patch | 17 | ||||
-rw-r--r-- | packages/netpbm/netpbm_10.28.bb | 20 | ||||
-rw-r--r-- | packages/postfix/files/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/postfix/files/main.cf_2.0 | 25 | ||||
-rwxr-xr-x | packages/postfix/files/postfix | 31 | ||||
-rw-r--r-- | packages/postfix/files/volatiles | 15 | ||||
-rw-r--r-- | packages/postfix/postfix_2.0.20.bb | 26 |
7 files changed, 130 insertions, 4 deletions
diff --git a/packages/netpbm/netpbm-10.28/ppmtojpeg.patch b/packages/netpbm/netpbm-10.28/ppmtojpeg.patch new file mode 100644 index 0000000000..39df5edbea --- /dev/null +++ b/packages/netpbm/netpbm-10.28/ppmtojpeg.patch @@ -0,0 +1,17 @@ +# This patch makes the /usr/bin/ppmtojpeg work on OE. + +--- netpbm-10.28/netpbm.c.orig 2005-08-04 13:20:15.665273549 -0700 ++++ netpbm-10.28/netpbm.c 2005-08-04 13:21:09.288647855 -0700 +@@ -62,8 +62,11 @@ + which would know whether pnmtojpeg was built into the merged binary + or not. But that's too much work. + +- TRY("ppmtojpeg", main_pnmtojpeg); ++ * Patched for OE because OE builds the jpeg library (always) and the ++ * subdirectory creates the link anyway, so otherwise we have a bogus ++ * link. + */ ++ TRY("ppmtojpeg", main_pnmtojpeg); + TRY("bmptoppm", main_bmptopnm); + TRY("pgmnorm", main_pnmnorm); + TRY("ppmnorm", main_pnmnorm); diff --git a/packages/netpbm/netpbm_10.28.bb b/packages/netpbm/netpbm_10.28.bb index b4f78a57a1..1bbcb4ff07 100644 --- a/packages/netpbm/netpbm_10.28.bb +++ b/packages/netpbm/netpbm_10.28.bb @@ -10,15 +10,31 @@ LICENSE = "GPL MIT Artistic" SECTION = "console/utils" DEPENDS = "jpeg zlib libpng tiff install-native flex-native" -RDEPENDS = "perl" +RDEPENDS = "perl\ + perl-module-${TARGET_SYS}-xsloader\ + perl-module-carp\ + perl-module-constant\ + perl-module-english\ + perl-module-exporter\ + perl-module-exporter-heavy\ + perl-module-fcntl\ + perl-module-file-spec\ + perl-module-file-spec-unix\ + perl-module-getopt-long\ + perl-module-strict\ + perl-module-vars\ + perl-module-warnings\ + perl-module-warnings-register\ + " HOMEPAGE = "http://netpbm.sourceforge.net" DESCRIPTION = "Netpbm is a toolkit for manipulation of graphic images, including\ conversion of images between a variety of different formats. There\ are over 220 separate tools in the package including converters for\ about 100 graphics formats." -PR = "r0" +PR = "r1" SRC_URI = "${SOURCEFORGE_MIRROR}/netpbm/netpbm-${PV}.tgz \ + file://ppmtojpeg.patch;patch=42 \ file://Makefile.config \ file://oeendiangen" diff --git a/packages/postfix/files/.mtn2git_empty b/packages/postfix/files/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/postfix/files/.mtn2git_empty diff --git a/packages/postfix/files/main.cf_2.0 b/packages/postfix/files/main.cf_2.0 new file mode 100644 index 0000000000..0bfe4afc1d --- /dev/null +++ b/packages/postfix/files/main.cf_2.0 @@ -0,0 +1,25 @@ +mydomain=sample.com + +virtual_mailbox_domains = sample.com, other.net +virtual_mailbox_base = /var/spool/vmail +virtual_mailbox_maps = hash:/etc/postfix/virtual +virtual_alias_maps = hash:/etc/postfix/virtual_alias +virtual_uid_maps = static:vmail +virtual_gid_maps = static:vmail + +config_directory = /etc/postfix +sample_directory = /etc/postfix +queue_directory = /var/spool/postfix +mail_spool_directory = /var/spool/mail +readme_directory = no +command_directory = /usr/sbin +daemon_directory = /usr/libexec/postfix +mail_owner = postfix +setgid_group = postdrop +mydestination = +unknown_local_recipient_reject_code = 450 +mynetworks_style = host +debug_peer_level = 2 +sendmail_path = /usr/sbin/sendmail +newaliases_path = /usr/bin/newaliases +mailq_path = /usr/bin/mailq diff --git a/packages/postfix/files/postfix b/packages/postfix/files/postfix new file mode 100755 index 0000000000..2fd5ba7007 --- /dev/null +++ b/packages/postfix/files/postfix @@ -0,0 +1,31 @@ +#!/bin/sh + +case "$1" in + + start) + echo "Starting Postfix..." + postfix start + ;; + + stop) + echo "Stopping Postfix..." + postfix stop + ;; + + reload) + echo "Reloading Postfix..." + postfix reload + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + *) + echo "Usage: $0 {start|stop|reload|restart}" + exit 1 + ;; +esac + diff --git a/packages/postfix/files/volatiles b/packages/postfix/files/volatiles new file mode 100644 index 0000000000..cb111cd4c0 --- /dev/null +++ b/packages/postfix/files/volatiles @@ -0,0 +1,15 @@ +d postfix nogroup 2755 /var/spool/mail +d root postfix 0755 /var/spool/postfix +d postfix root 0700 /var/spool/postfix/active +d postfix root 0700 /var/spool/postfix/bounce +d postfix root 0700 /var/spool/postfix/corrupt +d postfix root 0700 /var/spool/postfix/defer +d postfix root 0700 /var/spool/postfix/deferred +d postfix root 0700 /var/spool/postfix/flush +d postfix root 0700 /var/spool/postfix/hold +d postfix root 0700 /var/spool/postfix/incoming +d postfix postdrop 0730 /var/spool/postfix/maildrop +d root root 0755 /var/spool/postfix/pid +d postfix root 0700 /var/spool/postfix/private +d postfix postdrop 0710 /var/spool/postfix/public +d root root 0755 /var/spool/vmail diff --git a/packages/postfix/postfix_2.0.20.bb b/packages/postfix/postfix_2.0.20.bb index b9ef1fc2a5..3344e05115 100644 --- a/packages/postfix/postfix_2.0.20.bb +++ b/packages/postfix/postfix_2.0.20.bb @@ -1,11 +1,23 @@ SECTION = "console/network" DEPENDS = "db3 pcre postfix-native" LICENSE = "IPL" +PR = "r1" + SRC_URI = "ftp://ftp.porcupine.org/mirrors/postfix-release/official/postfix-${PV}.tar.gz \ file://${FILESDIR}/makedefs.patch;patch=1 \ - file://${FILESDIR}/install.patch;patch=1" + file://${FILESDIR}/install.patch;patch=1 \ + file://main.cf_2.0 \ + file://volatiles \ + file://postfix \ + " + S = "${WORKDIR}/postfix-${PV}" +inherit update-rc.d + +INITSCRIPT_NAME = "postfix" +INITSCRIPT_PARAMS = "start 58 3 4 5 . stop 13 0 1 6 ." + export SYSLIBS = "-lpcre -ldb -lnsl -lresolv ${LDFLAGS}" export EXPORT = "AUXLIBS='-lpcre' CCARGS='-DHAS_PCRE ${CFLAGS}' OPT='' DEBUG='-g'" export CC_append = " -DHAS_PCRE ${CFLAGS}" @@ -20,9 +32,19 @@ do_compile () { do_install () { sh ./postfix-install 'install_root=${D}' -non-interactive + rm -rf ${D}/var/spool/postfix + mv ${D}${sysconfdir}/postfix/main.cf ${D}${sysconfdir}/postfix/sample-main.cf + install -m 644 ${WORKDIR}/main.cf_2.0 ${D}${sysconfdir}/postfix/main.cf + install -m 644 ${WORKDIR}/volatiles ${D}${sysconfdir}/default/volatiles/01_postfix + install -m 755 ${WORKDIR}/postfix ${D}${sysconfdir}/init.d/postfix } pkg_postinst () { - grep postfix /etc/passwd || adduser --disabled-password --home=/var/spool/mail --ingroup nogroup postfix + grep postfix /etc/group || addgroup postfix + grep postdrop /etc/group || addgroup postdrop + grep vmail /etc/group || addgroup vmail + grep postfix /etc/passwd || adduser --disabled-password --home=/var/spool/postfix --ingroup postfix postfix + grep vmail /etc/passwd || adduser --disabled-password --home=/var/spool/vmail --ingroup vmail vmail + /etc/init.d/populate-volatile.sh } |