- converted to MULTI_PACKAGES by Alexey Suslikov

- tweaks by myself and bernd@

ok bernd@ (MAINTAINER)
This commit is contained in:
okan 2007-12-05 20:56:21 +00:00
parent 032178aee2
commit c937d65f8c
7 changed files with 38 additions and 17 deletions

View File

@ -1,8 +1,12 @@
# $OpenBSD: Makefile,v 1.3 2007/09/16 00:17:04 merdely Exp $
# $OpenBSD: Makefile,v 1.4 2007/12/05 20:56:21 okan Exp $
COMMENT= simple SMTP client
COMMENT-main= simple SMTP client
COMMENT-chroot= simple SMTP client for chrooted apache
DISTNAME= femail-0.97
V= 0.97
DISTNAME= femail-${V}
PKGNAME-main= femail-${V}p0
PKGNAME-chroot= femail-chroot-${V}p0
CATEGORIES= mail
HOMEPAGE= http://bulabula.org/femail/
@ -20,13 +24,16 @@ EXTRACT_SUFX= .tgz
NO_REGRESS= Yes
FLAVORS= static
FLAVOR?=
MULTI_PACKAGES= -main -chroot
.if ${FLAVOR:L:Mstatic}
MAKE_ENV= LDFLAGS="-static"
.else
WANTLIB= c
.endif
PREFIX-chroot= /var/www
WANTLIB-main= c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/femail ${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/femail.8 ${PREFIX}/man/man8
${INSTALL_PROGRAM_DIR} ${WRKINST}${PREFIX-chroot}/bin
${INSTALL_PROGRAM} ${WRKSRC}/femail-static \
${WRKINST}${PREFIX-chroot}/bin/femail
.include <bsd.port.mk>

View File

@ -1,8 +1,8 @@
$OpenBSD: patch-Makefile,v 1.1.1.1 2005/09/22 09:29:14 bernd Exp $
--- Makefile.orig Mon Sep 19 15:44:23 2005
+++ Makefile Tue Sep 20 12:36:13 2005
$OpenBSD: patch-Makefile,v 1.2 2007/12/05 20:56:21 okan Exp $
--- Makefile.orig Tue Sep 20 06:59:04 2005
+++ Makefile Tue Dec 4 22:10:04 2007
@@ -1,7 +1,7 @@
# $Id: patch-Makefile,v 1.1.1.1 2005/09/22 09:29:14 bernd Exp $
# $Id: patch-Makefile,v 1.2 2007/12/05 20:56:21 okan Exp $
-BINDIR = /usr/local/sbin
-MANDIR = /usr/local/man
@ -11,3 +11,11 @@ $OpenBSD: patch-Makefile,v 1.1.1.1 2005/09/22 09:29:14 bernd Exp $
CFLAGS+= -DHAS_FGETLN -DHAS_STRLCPY
# CFLAGS+= -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
# CFLAGS+= -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare
@@ -10,6 +10,7 @@ all: femail
femail: femail.o openbsd_compat.o
$(CC) $(LDFLAGS) femail.o openbsd_compat.o $(LDLIBS) -o femail
+ $(CC) $(LDFLAGS) -static femail.o openbsd_compat.o $(LDLIBS) -o femail-static
femail.o: femail.c
$(CC) $(CFLAGS) -c femail.c

View File

@ -0,0 +1,2 @@
statically linked version of femail which installs itself into the
default httpd(8) chroot area.

View File

@ -1,3 +0,0 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2005/09/22 09:29:14 bernd Exp $
@man man/man8/femail.8
sbin/femail

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST-chroot,v 1.1 2007/12/05 20:56:21 okan Exp $
bin/femail

View File

@ -0,0 +1,5 @@
@comment $OpenBSD: PLIST-main,v 1.1 2007/12/05 20:56:21 okan Exp $
@pkgpath mail/femail
@pkgpath mail/femail,static
@man man/man8/femail.8
sbin/femail