Improve Makefile.
.if defined(USE_LRZSZ) -> .if defined(USE_LRZSZ) && ${USE_LRZSZ:U} == "YES". Default config: Only root can access minicom by default.
This commit is contained in:
parent
ac1cb74dab
commit
b31809ff89
@ -1,4 +1,6 @@
|
|||||||
# $OpenBSD: Makefile,v 1.13 1999/10/01 17:01:52 espie Exp $
|
# $OpenBSD: Makefile,v 1.14 1999/12/09 03:28:30 form Exp $
|
||||||
|
#
|
||||||
|
# Use make LRZSZ=yes to build minicom with lrzsz package support.
|
||||||
|
|
||||||
PKGNAME= minicom-1.82.1
|
PKGNAME= minicom-1.82.1
|
||||||
DISTNAME= ${PKGNAME}.src
|
DISTNAME= ${PKGNAME}.src
|
||||||
@ -11,18 +13,19 @@ MASTER_SITES= ${MASTER_SITE_SUNSITE} \
|
|||||||
|
|
||||||
MASTER_SITE_SUBDIR= apps/serialcomm/dialout
|
MASTER_SITE_SUBDIR= apps/serialcomm/dialout
|
||||||
|
|
||||||
|
RUN_DEPENDS= kermit:${PORTSDIR}/comms/kermit
|
||||||
|
.if defined(USE_LRZSZ) && ${USE_LRZSZ:U} == "YES"
|
||||||
|
RUN_DEPENDS+= lrz:${PORTSDIR}/comms/lrzsz lsz:${PORTSDIR}/comms/lrzsz
|
||||||
|
.else
|
||||||
|
RUN_DEPENDS+= rz:${PORTSDIR}/comms/rzsz sz:${PORTSDIR}/comms/rzsz
|
||||||
|
.endif
|
||||||
|
|
||||||
WRKSRC= ${WRKDIR}/${PKGNAME}/src
|
WRKSRC= ${WRKDIR}/${PKGNAME}/src
|
||||||
|
|
||||||
pre-build:
|
.if defined(USE_LRZSZ) && ${USE_LRZSZ:U} == "YES"
|
||||||
.if defined(USE_LRZSZ)
|
post-patch:
|
||||||
@cd ${WRKSRC}; /usr/bin/patch -p0 < ${FILESDIR}/patch-lrzsz; \
|
@cd ${WRKSRC}; ${PATCH} ${PATCH_STRIP} < ${FILESDIR}/patch-lrzsz \
|
||||||
touch ${WRKDIR}/.with_lrzsz
|
2>/dev/null
|
||||||
.else
|
|
||||||
@${ECHO} "***"
|
|
||||||
@${ECHO} "*** Building minicom with rzsz support."
|
|
||||||
@${ECHO} "*** If you wish to use lrzsz package instead of rzsz,"
|
|
||||||
@${ECHO} "*** do 'make USE_LRZSZ=yes'."
|
|
||||||
@${ECHO} "***"
|
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
@ -32,11 +35,4 @@ post-install:
|
|||||||
${INSTALL_DATA} ${WRKSRC}/minicom.users /etc/minicom
|
${INSTALL_DATA} ${WRKSRC}/minicom.users /etc/minicom
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
RUN_DEPENDS= kermit:${PORTSDIR}/comms/kermit
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
||||||
.if exists(${WRKDIR}/.with_lrzsz)
|
|
||||||
RUN_DEPENDS+= lrz:${PORTSDIR}/comms/lrzsz lsz:${PORTSDIR}/comms/lrzsz
|
|
||||||
.else
|
|
||||||
RUN_DEPENDS+= rz:${PORTSDIR}/comms/rzsz sz:${PORTSDIR}/comms/rzsz
|
|
||||||
.endif
|
|
||||||
|
13
comms/minicom/patches/patch-ai
Normal file
13
comms/minicom/patches/patch-ai
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
--- minicom.users.orig Thu Dec 9 09:09:01 1999
|
||||||
|
+++ minicom.users Thu Dec 9 09:09:37 1999
|
||||||
|
@@ -25,8 +25,8 @@
|
||||||
|
# User [line] [..line]
|
||||||
|
#
|
||||||
|
|
||||||
|
-# Everyone has access to all configurations.
|
||||||
|
-ALL
|
||||||
|
+# Only root can access minicom by default
|
||||||
|
+root
|
||||||
|
|
||||||
|
## The rest are examples.
|
||||||
|
## # Erik only has access to the default configuration
|
Loading…
Reference in New Issue
Block a user