1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-21 20:38:45 +00:00

Perl 5.8.4 and above add several security check when doing setuid.

One of these checks is that the interpreter must have string "perl" with it.

http://sourceforge.net/mailarchive/forum.php?thread_id=4823748&forum_id=7581

- rename speedy_suid to speedy_suidperl (or speedyperl_suid will be fine, too)
- utilize ECHO
- replace all /usr/local with PREFIX will cause some problems when PREFIX
  isn't /usr/local (missing PERL5 libraries and modules... blah blah...)
- bump PORTREVISION

PR:		69970
Submitted by:	leeym
Reviewed by:	lth
This commit is contained in:
Yen-Ming Lee 2004-08-06 17:37:00 +00:00
parent 19d31ee14f
commit 3122f31a46
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=115517
2 changed files with 5 additions and 5 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= CGI-SpeedyCGI
PORTVERSION= 2.22
PORTREVISION= 1
CATEGORIES= www perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= CGI
@ -29,7 +30,7 @@ CONFIGURE_ENV+= WITHOUT_APACHE=yes
.else
PLIST_SUB+= APACHE=""
.if exists(${APXS})
APXS_WORKS!= ${APXS} -q TARGET 2>/dev/null || echo no
APXS_WORKS!= ${APXS} -q TARGET 2>/dev/null || ${ECHO} no
.endif
.if exists(${APXS}) && ${APXS_WORKS} != no
AP_LIBEXEC!= ${APXS} -q LIBEXECDIR
@ -41,11 +42,10 @@ PLIST_SUB+= AP_LIBEXEC=${AP_LIBEXEC:S/^${PREFIX}\///}
post-configure:
@${PERL} -pi -e 's,^PREFIX = /usr$$,PREFIX = ${PREFIX},g;' \
-e 's,/usr/local,${PREFIX},g;' \
${WRKSRC}/Makefile ${WRKSRC}/*/Makefile
post-install:
@${INSTALL_PROGRAM} ${WRKSRC}/speedy/speedy ${PREFIX}/bin/speedy_suid
@${CHMOD} 4755 ${PREFIX}/bin/speedy_suid
@${INSTALL_PROGRAM} ${WRKSRC}/speedy/speedy ${PREFIX}/bin/speedy_suidperl
@${CHMOD} 4755 ${PREFIX}/bin/speedy_suidperl
.include <bsd.port.post.mk>

View File

@ -3,7 +3,7 @@
%%SITE_PERL%%/CGI/SpeedyCGI.pm
bin/speedy
bin/speedy_backend
bin/speedy_suid
bin/speedy_suidperl
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/CGI/SpeedyCGI
@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/CGI 2>/dev/null || true
@unexec rmdir %D/%%SITE_PERL%%/CGI 2>/dev/null || true