diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2002-06-16 15:03:10 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2002-06-16 15:03:10 +0000 |
commit | 3209d0ed2cc143797c8daed23af744fac7bae88f (patch) | |
tree | 860c1e7d1aa2270dd945fbd7842cb80ebf687386 /security/openssh | |
parent | Fix corrupted patch (duplicate of content). (diff) |
- Get rid of PERL and use SED
Notes
Notes:
svn path=/head/; revision=61375
Diffstat (limited to 'security/openssh')
-rw-r--r-- | security/openssh/Makefile | 23 |
1 files changed, 16 insertions, 7 deletions
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 |