From 75a2431d8bfd9b3a351cd27531866894ee77645d Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 25 Oct 2011 13:27:18 +0000 Subject: main/altermime: moved from testing --- main/altermime/APKBUILD | 39 ++++++++++++++++++++++++++++++++++ main/altermime/makefile-flags.patch | 21 ++++++++++++++++++ testing/altermime/APKBUILD | 39 ---------------------------------- testing/altermime/makefile-flags.patch | 21 ------------------ 4 files changed, 60 insertions(+), 60 deletions(-) create mode 100644 main/altermime/APKBUILD create mode 100644 main/altermime/makefile-flags.patch delete mode 100644 testing/altermime/APKBUILD delete mode 100644 testing/altermime/makefile-flags.patch diff --git a/main/altermime/APKBUILD b/main/altermime/APKBUILD new file mode 100644 index 000000000..1e4667716 --- /dev/null +++ b/main/altermime/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Natanael Copa +# Maintainer: Natanael Copa +pkgname=altermime +pkgver=0.3.10 +pkgrel=0 +pkgdesc="program alter mime-encoded mailpacks" +url="http://www.pldaniels.com/altermime/" +arch="all" +license="Sendmail" +depends= +makedepends= +install= +subpackages= +source="http://www.pldaniels.com/altermime/altermime-$pkgver.tar.gz + makefile-flags.patch" + +_builddir="$srcdir"/altermime-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + make || return 1 +} + +package() { + cd "$_builddir" + install -Dm755 altermime "$pkgdir"/usr/bin/altermime +} + +md5sums="aaf0ad8029958a2dc6da3abb4dc178c2 altermime-0.3.10.tar.gz +604775894fa4f8ddd9d44761ce2be2ea makefile-flags.patch" diff --git a/main/altermime/makefile-flags.patch b/main/altermime/makefile-flags.patch new file mode 100644 index 000000000..71a399051 --- /dev/null +++ b/main/altermime/makefile-flags.patch @@ -0,0 +1,21 @@ +--- ./Makefile.orig ++++ ./Makefile +@@ -9,7 +9,8 @@ + # opposite of a disclaimer. + #ALTERMIME_OPTIONS=-DALTERMIME_PRETEXT + ALTERMIME_OPTIONS= +-CFLAGS=-Wall -Werror -g -I. -O2 $(ALTERMIME_OPTIONS) ++CFLAGS?=-Wall -Werror -g -I. -O2 ++CFLAGS+=$(ALTERMIME_OPTIONS) + OBJS= strstack.o mime_alter.o ffget.o pldstr.o filename-filters.o logger.o MIME_headers.o libmime-decoders.o boundary-stack.o qpe.o + + +@@ -19,7 +20,7 @@ + all: altermime + + altermime: altermime.c ${OBJS} +- ${CC} ${CFLAGS} altermime.c ${OBJS} -o altermime ++ ${CC} ${CFLAGS} altermime.c ${OBJS} ${LDFLAGS} -o altermime + + + # Build Install diff --git a/testing/altermime/APKBUILD b/testing/altermime/APKBUILD deleted file mode 100644 index 1e4667716..000000000 --- a/testing/altermime/APKBUILD +++ /dev/null @@ -1,39 +0,0 @@ -# Contributor: Natanael Copa -# Maintainer: Natanael Copa -pkgname=altermime -pkgver=0.3.10 -pkgrel=0 -pkgdesc="program alter mime-encoded mailpacks" -url="http://www.pldaniels.com/altermime/" -arch="all" -license="Sendmail" -depends= -makedepends= -install= -subpackages= -source="http://www.pldaniels.com/altermime/altermime-$pkgver.tar.gz - makefile-flags.patch" - -_builddir="$srcdir"/altermime-$pkgver -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} - -build() { - cd "$_builddir" - make || return 1 -} - -package() { - cd "$_builddir" - install -Dm755 altermime "$pkgdir"/usr/bin/altermime -} - -md5sums="aaf0ad8029958a2dc6da3abb4dc178c2 altermime-0.3.10.tar.gz -604775894fa4f8ddd9d44761ce2be2ea makefile-flags.patch" diff --git a/testing/altermime/makefile-flags.patch b/testing/altermime/makefile-flags.patch deleted file mode 100644 index 71a399051..000000000 --- a/testing/altermime/makefile-flags.patch +++ /dev/null @@ -1,21 +0,0 @@ ---- ./Makefile.orig -+++ ./Makefile -@@ -9,7 +9,8 @@ - # opposite of a disclaimer. - #ALTERMIME_OPTIONS=-DALTERMIME_PRETEXT - ALTERMIME_OPTIONS= --CFLAGS=-Wall -Werror -g -I. -O2 $(ALTERMIME_OPTIONS) -+CFLAGS?=-Wall -Werror -g -I. -O2 -+CFLAGS+=$(ALTERMIME_OPTIONS) - OBJS= strstack.o mime_alter.o ffget.o pldstr.o filename-filters.o logger.o MIME_headers.o libmime-decoders.o boundary-stack.o qpe.o - - -@@ -19,7 +20,7 @@ - all: altermime - - altermime: altermime.c ${OBJS} -- ${CC} ${CFLAGS} altermime.c ${OBJS} -o altermime -+ ${CC} ${CFLAGS} altermime.c ${OBJS} ${LDFLAGS} -o altermime - - - # Build Install -- cgit v1.2.3