summaryrefslogtreecommitdiff
path: root/comms/minicom/Makefile
blob: ed5cef2a8fc3b31bffa2a65483b18156833cc403 (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
# $NetBSD: Makefile,v 1.54 2007/06/15 18:23:49 jlam Exp $

DISTNAME=	minicom-2.1
PKGREVISION=	2
CATEGORIES=	comms
MASTER_SITES=	http://alioth.debian.org/download.php/123/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://alioth.debian.org/projects/minicom/
COMMENT=	MS-DOS Telix serial communication program "workalike"

DEPENDS+=	gkermit-[0-9]*:../../comms/gkermit
DEPENDS+=	lrzsz-[0-9]*:../../comms/lrzsz

PKG_INSTALLATION_TYPES=	overwrite pkgviews

USE_PKGLOCALEDIR=	yes
USE_TOOLS+=		gmake msgfmt
GNU_CONFIGURE=		yes

CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR:Q}

PKG_SYSCONFSUBDIR=	minicom
EGDIR=			${PREFIX}/share/examples/minicom

UUCP_USER?=		uucp	# shared with net/uucp

PKG_GROUPS=		dialer
PKG_USERS=		${UUCP_USER}:dialer
SPECIAL_PERMS=		${PREFIX}/bin/minicom ${UUCP_USER} dialer 4555
OWN_DIRS_PERMS=		${PKG_SYSCONFDIR} ${UUCP_USER} dialer 0755
CONF_FILES_PERMS=	${EGDIR}/minicom.users ${PKG_SYSCONFDIR}/minicom.users \
			${UUCP_USER} dialer 0644

SUBST_CLASSES+=	minicom
SUBST_MESSAGE.minicom=	Fixing hardcoded paths.
SUBST_STAGE.minicom=	post-patch
SUBST_FILES.minicom=	src/rwconf.c
SUBST_SED.minicom=	-e 's,@PREFIX@,${PREFIX},g'

post-install:
	${INSTALL_DATA_DIR} ${EGDIR}
	${INSTALL_DATA} ${WRKSRC}/doc/minicom.users ${EGDIR}

.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"