diff options
author | dinoex <dinoex@FreeBSD.org> | 2002-06-16 23:03:10 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2002-06-16 23:03:10 +0800 |
commit | fd64cc1ce59cc2c7732d14183fbb09c1530a6fca (patch) | |
tree | f2b90f36648fe13ed28fdddbabab21b4f8e0d784 /security | |
parent | 95776cd25c1f4f9a7a4a975fd6c165ae559dc920 (diff) | |
download | freebsd-ports-gnome-fd64cc1ce59cc2c7732d14183fbb09c1530a6fca.tar.gz freebsd-ports-gnome-fd64cc1ce59cc2c7732d14183fbb09c1530a6fca.tar.zst freebsd-ports-gnome-fd64cc1ce59cc2c7732d14183fbb09c1530a6fca.zip |
- Get rid of PERL and use SED
Diffstat (limited to 'security')
-rw-r--r-- | security/hpn-ssh/Makefile | 2 | ||||
-rw-r--r-- | security/openssh-portable/Makefile | 2 | ||||
-rw-r--r-- | security/openssh/Makefile | 23 |
3 files changed, 18 insertions, 9 deletions
diff --git a/security/hpn-ssh/Makefile b/security/hpn-ssh/Makefile index 2a77e7f02843..46a8046c3e13 100644 --- a/security/hpn-ssh/Makefile +++ b/security/hpn-ssh/Makefile @@ -83,7 +83,7 @@ post-install: .include <bsd.port.pre.mk> -.include <${PORTSDIR}/security/openssl/Makefile.ssl> +.include "${PORTSDIR}/security/openssl/Makefile.ssl" CONFIGURE_ARGS+= --with-ssl-dir=${OPENSSLBASE} .include <bsd.port.post.mk> diff --git a/security/openssh-portable/Makefile b/security/openssh-portable/Makefile index 2a77e7f02843..46a8046c3e13 100644 --- a/security/openssh-portable/Makefile +++ b/security/openssh-portable/Makefile @@ -83,7 +83,7 @@ post-install: .include <bsd.port.pre.mk> -.include <${PORTSDIR}/security/openssl/Makefile.ssl> +.include "${PORTSDIR}/security/openssl/Makefile.ssl" CONFIGURE_ARGS+= --with-ssl-dir=${OPENSSLBASE} .include <bsd.port.post.mk> diff --git a/security/openssh/Makefile b/security/openssh/Makefile index 88b1aeb13dec..afedb14bffc3 100644 --- a/security/openssh/Makefile +++ b/security/openssh/Makefile @@ -24,6 +24,7 @@ MAN1= scp.1 slogin.1 ssh-add.1 ssh-agent.1 ssh-keygen.1 ssh.1 \ ssh-keyscan.1 sftp.1 MAN8= sshd.8 sftp-server.8 MANCOMPRESSED= yes +MODIFY= ssh.h sshd_config sshd.sh pathnames.h FIXME= lib/Makefile scp/Makefile sftp/Makefile sftp-server/Makefile \ ssh/Makefile ssh-add/Makefile ssh-agent/Makefile \ ssh-keygen/Makefile ssh-keyscan/Makefile sshd/Makefile @@ -71,8 +72,14 @@ post-extract: .endif post-patch: - @${PERL5} -pi -e "s=/etc/ssh=${PREFIX}/etc/ssh=" ${WRKSRC}/sshd_config - @${PERL5} -pi -e "s=/usr/libex=${PREFIX}/libex=" ${WRKSRC}/sshd_config + @${MV} ${WRKSRC}/sshd_config ${WRKSRC}/sshd_config.sed + ${SED} -e "s=/etc/ssh=${PREFIX}/etc/ssh=" \ + -e "s=/usr/libex=${PREFIX}/libex=" \ + ${WRKSRC}/sshd_config.sed > ${WRKSRC}/sshd_config +.for i in ${MODIFY} + @${MV} ${WRKSRC}/${i} ${WRKSRC}/${i}.sed + ${SED} -e 's:__PREFIX__:${PREFIX}:g' ${WRKSRC}/${i}.sed >${WRKSRC}/${i} +.endfor @${PERL5} -pi -e 's:__PREFIX__:${PREFIX}:g' ${WRKSRC}/ssh.h \ ${WRKSRC}/sshd_config ${WRKSRC}/sshd.sh \ ${WRKSRC}/pathnames.h @@ -80,11 +87,13 @@ post-patch: .if ${OSVERSION} < 430000 post-configure: .for i in ${FIXME} - @${PERL5} -pi -e "s=KERBEROS[:]L=KERBEROS=" ${WRKSRC}/${i} - @${PERL5} -pi -e "s=KERBEROS5[:]L=KERBEROS5=" ${WRKSRC}/${i} - @${PERL5} -pi -e "s=AFS[:]L=AFS=" ${WRKSRC}/${i} - @${PERL5} -pi -e "s=TCP_WRAPPERS[:]L=TCP_WRAPPERS=" ${WRKSRC}/${i} - @${PERL5} -pi -e "s=SKEY[:]L=SKEY=" ${WRKSRC}/${i} + @${MV} ${WRKSRC}/${i} ${WRKSRC}/${i}.sed + ${SED} -e "s=KERBEROS[:]L=KERBEROS=" \ + -e "s=KERBEROS5[:]L=KERBEROS5=" \ + -e "s=AFS[:]L=AFS=" \ + -e "s=TCP_WRAPPERS[:]L=TCP_WRAPPERS=" \ + -e "s=SKEY[:]L=SKEY=" \ + ${WRKSRC}/${i}.sed >${WRKSRC}/${i} .endfor .endif |