summaryrefslogtreecommitdiff
path: root/security/openssh/Makefile.intree
blob: 1ac3e7ac80a236c575ee3160a98dc181a6cb23dc (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
# $NetBSD: Makefile.intree,v 1.5 2002/08/28 04:00:55 jlam Exp $

.include "../../mk/bsd.prefs.mk"

_UPDATE_INTREE_OPENSSH?=	NO
.if ${OPSYS} == "NetBSD"
.  for PATTERN in 1.5 1.5.*
.    if ${OS_VERSION:M${PATTERN}}
_UPDATE_INTREE_OPENSSH=	YES
PKG_SYSCONFSUBDIR:=		# empty
.    endif
.  endfor
.  for PATTERN in 1.6*
.    if ${OS_VERSION:M${PATTERN}}
_UPDATE_INTREE_OPENSSH=	YES
PKG_SYSCONFSUBDIR:=		ssh
.    endif
.  endfor
.endif

# We would like to require an in-tree OpenSSL that is at least 0.9.5a, but the
# openssl buildlink.mk forces at least 0.9.6f, which makes
# UPDATE_INTREE_OPENSSH useless for anything before 1.6*
#
# USE_OPENSSL_VERSION:=	${OPENSSL_VERSION_095A}
.include "../../security/openssl/buildlink2.mk"
.if ${_NEED_OPENSSL} == "YES"
_UPDATE_INTREE_OPENSSH=		NO
IGNORE=		"OpenSSL>=0.9.6f in the base distribution is required."
.endif

.if ${_UPDATE_INTREE_OPENSSH} == "YES"
NO_MTREE=		yes
NO_PKG_REGISTER=	yes
NO_PACKAGE=		No package registration is done
MANCOMPRESSED_IF_MANZ=	yes
LOCALBASE:=		/usr
PKG_SYSCONFBASE:=	/etc
MANDIR:=		share/man
RCD_SCRIPTS_EGDIR:=	share/examples/openssh
.else
IGNORE?=	"Unable to update in-tree OpenSSH for ${OPSYS}-${OS_VERSION}."
.endif

real-tarball:
	${GREP} -v "^@" ${PLIST} | ${SED} -e "s,^,${PREFIX}/," | ${SORT} \
		> ${WRKDIR}/MANIFEST
	${GTAR} zcvpf ${PKGNAME}-intree-${OPSYS}-${OS_VERSION}.tgz	\
		`${CAT} ${WRKDIR}/MANIFEST`

tarball:
	@${ECHO_MSG} "${_PKGSRC_IN}> Tarballing ${PKGNAME}"
	${_PKG_SILENT}${_PKG_DEBUG}					\
	realtarget="real-tarball"; action="tarball";			\
	${_SU_TARGET}