9c790735db
the RCD_SCRIPTS rc.d script(s) to the PLIST. This GENERATE_PLIST idea is part of Greg A. Woods' PR #22954. This helps when the RC_SCRIPTS are installed to a different ${RCD_SCRIPTS_EXAMPLEDIR}. (Later, the default RCD_SCRIPTS_EXAMPLEDIR will be changed to be more clear that they are the examples.) These patches also remove the etc/rc.d/ scripts from PLISTs (of packages that use RCD_SCRIPTS). (This also removes now unused references from openssh* makefiles. Note that qmail package has not been changed yet.) I have been doing automatic PLIST registration for RC_SCRIPTS for over a year. Not all of these packages have been tested, but many have been tested and used. Somethings maybe to do: - a few packages still manually install the rc.d scripts to hard-coded etc/rc.d. These need to be fixed. - maybe remove from mk/${OPSYS}.pkg.dist mtree specifications too.
166 lines
4.9 KiB
Makefile
166 lines
4.9 KiB
Makefile
# $NetBSD: Makefile,v 1.12 2004/04/23 22:07:58 reed Exp $
|
|
|
|
# NOTE: This package is modeled on ../openssh, but does not share
|
|
# files with it as that package may update faster than the gssapi
|
|
# patches do.
|
|
|
|
DISTNAME= openssh-3.6.1p2
|
|
PKGNAME= openssh+gssapi-3.6.1.2.20030430
|
|
PKGREVISION= 3
|
|
SVR4_PKGNAME= osshgss
|
|
CATEGORIES= security
|
|
MASTER_SITES= ftp://ftp7.usa.openbsd.org/pub/os/OpenBSD/OpenSSH/portable/ \
|
|
ftp://ftp.stealth.net/pub/mirrors/ftp.openssh.com/pub/OpenBSD/OpenSSH/portable/ \
|
|
http://public.planetmirror.com.au/pub/OpenBSD/OpenSSH/portable/ \
|
|
ftp://ftp.openssh.com/pub/OpenBSD/OpenSSH/portable/ \
|
|
ftp://gd.tuwien.ac.at/opsys/OpenBSD/OpenSSH/portable/ \
|
|
ftp://ftp.openssh.com/pub/OpenBSD/OpenSSH/portable/old/
|
|
PATCH_SITES= http://www.sxw.org.uk/computing/patches/
|
|
PATCHFILES= openssh-3.6.1p2-gssapi-20030430.diff
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
# Don't delete the last entry -- it's there if the pkgsrc version is not
|
|
# up-to-date and the mirrors already removed the old distfile.
|
|
|
|
MAINTAINER= jwise@NetBSD.org
|
|
HOMEPAGE= http://www.openssh.com/
|
|
COMMENT= Open Source Secure shell client and server with enhanced GSSAPI support
|
|
|
|
CONFLICTS= sftp-[0-9]*
|
|
CONFLICTS+= ssh-[0-9]* ssh6-[0-9]* ssh2-[0-9]*
|
|
CONFLICTS+= openssh-[0-9]*
|
|
|
|
USE_PERL5= build
|
|
|
|
CRYPTO= yes
|
|
KERBEROS= yes
|
|
|
|
# retain the following line, for IPv6-ready pkgsrc webpage
|
|
BUILD_DEFS+= USE_INET6
|
|
#BUILD_DEFS+= KERBEROS
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
INSTALL_TARGET= install-nokeys
|
|
PLIST_SRC= # empty
|
|
MESSAGE_SRC= ${.CURDIR}/MESSAGE
|
|
|
|
PKG_USERS= ${OPENSSH_USER}:${OPENSSH_GROUP}:${OPENSSH_UID}:sshd\\ privsep:${OPENSSH_CHROOT}:${NOLOGIN}
|
|
PKG_GROUPS= ${OPENSSH_GROUP}:${OPENSSH_GID}
|
|
|
|
SSH_PID_DIR= /var/run # default directory for PID files
|
|
|
|
PKG_SYSCONFSUBDIR= ssh
|
|
MANDIR= man
|
|
|
|
PLIST_SUBST+= MANDIR=${MANDIR}
|
|
|
|
USE_BUILDLINK2= yes
|
|
USE_PKGINSTALL= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
|
|
CONFIGURE_ARGS+= --mandir=${PREFIX}/${MANDIR}
|
|
CONFIGURE_ARGS+= --with-pid-dir=${SSH_PID_DIR}
|
|
CONFIGURE_ARGS+= --with-ssl-dir=${SSLBASE}
|
|
CONFIGURE_ARGS+= --with-tcp-wrappers=${BUILDLINK_PREFIX.tcp_wrappers}
|
|
CONFIGURE_ARGS+= --with-privsep-path=${OPENSSH_CHROOT}
|
|
CONFIGURE_ARGS+= --with-privsep-user=${OPENSSH_USER}
|
|
CONFIGURE_ARGS+= --with-kerberos5=/usr
|
|
CONFIGURE_ARGS+= --with-kerberos4=/usr
|
|
|
|
CPPFLAGS+= -I/usr/include/krb5 -I/usr/include/kerberosIV
|
|
|
|
# XXX: PAM authentication causes memory faults, and I haven't tracked down
|
|
# XXX: why yet. For the moment, disable PAM authentication.
|
|
#
|
|
#.if defined(USE_PAM)
|
|
#.include "../../security/PAM/buildlink2.mk"
|
|
#CONFIGURE_ARGS+= --with-pam
|
|
#PLIST_SRC+= ${.CURDIR}/PLIST.pam
|
|
#MESSAGE_SRC+= ${.CURDIR}/MESSAGE.pam
|
|
#.endif
|
|
|
|
.if (${OPSYS} == "Darwin") || (${OPSYS} == "SunOS")
|
|
. include "../../security/skey/buildlink2.mk"
|
|
CONFIGURE_ARGS+= --with-skey=${BUILDLINK_PREFIX.skey}
|
|
.elif ${OPSYS} == "NetBSD"
|
|
# XXX: NetBSD has 4 args (4: sslen) to skeychallenge instead of 3
|
|
#CONFIGURE_ARGS+= --with-skey=/usr
|
|
CONFIGURE_ARGS+= --without-skey
|
|
.else
|
|
CONFIGURE_ARGS+= --without-skey
|
|
.endif
|
|
|
|
.if defined(KERBEROS)
|
|
PKG_USE_KERBEROS= yes
|
|
CONFIGURE_ARGS+= --with-kerberos4=/usr
|
|
LDFLAGS+= -lkrb -lcom_err -lroken -ldes -lcrypto
|
|
.endif
|
|
|
|
CONFIGURE_ENV+= LD=${CC:Q}
|
|
|
|
# The ssh-askpass program is in ${X11BASE}/bin or ${X11PREFIX}/bin depending
|
|
# on if it's part of the X11 distribution, or if it's installed from pkgsrc
|
|
# (security/ssh-askpass).
|
|
#
|
|
.if exists(${X11BASE}/bin/ssh-askpass)
|
|
ASKPASS_PROGRAM= ${X11BASE}/bin/ssh-askpass
|
|
.else
|
|
ASKPASS_PROGRAM= ${X11PREFIX}/bin/ssh-askpass
|
|
.endif
|
|
CONFIGURE_ENV+= ASKPASS_PROGRAM=${ASKPASS_PROGRAM}
|
|
MAKE_ENV+= ASKPASS_PROGRAM=${ASKPASS_PROGRAM}
|
|
|
|
CONFS= ssh_config sshd_config
|
|
SUPPS= moduli
|
|
|
|
.if exists(/dev/urandom)
|
|
MESSAGE_SRC+= ${.CURDIR}/MESSAGE.urandom
|
|
.else
|
|
CONFIGURE_ARGS+= --without-random
|
|
CONFS+= ssh_prng_cmds
|
|
PLIST_SRC+= ${.CURDIR}/PLIST.prng
|
|
.endif
|
|
|
|
EGDIR= ${PREFIX}/share/examples/openssh
|
|
CONF_FILES= # empty
|
|
.for FILE in ${CONFS}
|
|
CONF_FILES+= ${EGDIR}/${FILE} ${PKG_SYSCONFDIR}/${FILE}
|
|
.endfor
|
|
SUPPORT_FILES= # empty
|
|
.for FILE in ${SUPPS}
|
|
SUPPORT_FILES+= ${EGDIR}/${FILE} ${PKG_SYSCONFDIR}/${FILE}
|
|
.endfor
|
|
OWN_DIRS= ${OPENSSH_CHROOT}
|
|
RCD_SCRIPTS= sshd
|
|
|
|
PLIST_SRC+= ${.CURDIR}/PLIST
|
|
FILES_SUBST+= SSH_PID_DIR=${SSH_PID_DIR}
|
|
MESSAGE_SUBST+= EGDIR=${EGDIR}
|
|
MESSAGE_SUBST+= OPENSSH_USER=${OPENSSH_USER}
|
|
MESSAGE_SUBST+= OPENSSH_GROUP=${OPENSSH_GROUP}
|
|
|
|
INSTALL_EXTRA_TMPL+= ${.CURDIR}/INSTALL
|
|
|
|
.if defined(UPDATE_INTREE_OPENSSH)
|
|
. include "Makefile.intree"
|
|
.endif
|
|
|
|
pre-configure:
|
|
cd ${WRKSRC} && ${AUTORECONF}
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${EGDIR}
|
|
cd ${WRKSRC}; for file in ${CONFS} ${SUPPS}; do \
|
|
${INSTALL_DATA} $${file}.out ${EGDIR}/$${file}; \
|
|
done
|
|
#.if defined(USE_PAM)
|
|
# ${INSTALL_DATA} ${WRKSRC}/contrib/sshd.pam.freebsd ${EGDIR}/sshd.pam
|
|
#.endif
|
|
|
|
.include "../../devel/zlib/buildlink2.mk"
|
|
.include "../../security/openssl/buildlink2.mk"
|
|
.include "../../security/tcp_wrappers/buildlink2.mk"
|
|
.include "../../mk/autoconf.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|