blob: f9797f1bf6c25fe3cf1f6c2976882afd7b431340 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# $NetBSD: Makefile,v 1.4 2021/03/18 22:05:56 tm Exp $
VERSION= 1.2.8
PKGNAME= up-imapproxy-${VERSION}
PKGREVISION= 2
DISTNAME= up-imapproxy_${VERSION}~svn20171105.orig
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_DEBIAN:=pool/main/u/up-imapproxy/}
EXTRACT_SUFX= .tar.bz2
CONFLICTS+= imapproxy-[0-9]*
MAINTAINER= tm@NetBSD.org
HOMEPAGE= http://www.imapproxy.org/
COMMENT= Connection caching IMAP proxy server
LICENSE= gnu-gpl-v2
GNU_CONFIGURE= YES
WRKSRC= ${WRKDIR}/squirrelmail.imap_proxy
RCD_SCRIPTS= imapproxy
RCD_SCRIPT_SRC.imapproxy= ${WRKSRC}/scripts/imapproxy-bsd.init
INSTALLATION_DIRS+= sbin share/doc/imapproxy share/examples/imapproxy
CONF_FILES= ${PREFIX}/share/examples/imapproxy/imapproxy.conf \
${PKG_SYSCONFDIR}/imapproxy.conf
SUBST_CLASSES+= paths
SUBST_STAGE.paths= pre-configure
SUBST_FILES.paths= include/imapproxy.h
SUBST_VARS.paths= PKG_SYSCONFDIR VARBASE
SUBST_MESSAGE.paths= Fixing hard coded paths.
SUBST_CLASSES+= readme
SUBST_STAGE.readme= pre-configure
SUBST_FILES.readme= README*
SUBST_SED.readme= -e 's,/usr/local/etc,${PKG_SYSCONFDIR},g'
SUBST_SED.readme+= -e 's,/usr/local,${PREFIX},g'
# These variables are unused and contain CVS Ids.
SUBST_CLASSES+= patch
SUBST_STAGE.patch= post-extract
SUBST_FILES.patch= src/main.c
SUBST_MESSAGE.patch= Fixing patch for CVS commit
SUBST_SED.patch= -e '/static char \*sourceRevision/d'
SUBST_SED.patch+= -e '/static char \*sourceVersion/d'
SUBST_SED.patch+= -e '/static char \*sourceAuthor/d'
post-install:
.for doc in COPYING ChangeLog README README.known_issues README.ssl
${INSTALL_DATA} ${WRKSRC}/${doc} ${DESTDIR}${PREFIX}/share/doc/imapproxy
.endfor
${INSTALL_DATA} ${WRKSRC}/scripts/imapproxy.conf \
${DESTDIR}${PREFIX}/share/examples/imapproxy
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/curses.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|