aboutsummaryrefslogtreecommitdiff
path: root/news/newsgrab
diff options
context:
space:
mode:
authorNiels Heinen <niels@FreeBSD.org>2005-02-01 09:36:44 +0000
committerNiels Heinen <niels@FreeBSD.org>2005-02-01 09:36:44 +0000
commit67ac30b5a9913caba84f193ab1b3b108d404a353 (patch)
treee690ca160332659b241790d93cad6246318cfae4 /news/newsgrab
parent4623e0c26127215f0446d81029d0137fd6d19113 (diff)
downloadports-67ac30b5a9913caba84f193ab1b3b108d404a353.tar.gz
ports-67ac30b5a9913caba84f193ab1b3b108d404a353.zip
Notes
Diffstat (limited to 'news/newsgrab')
-rw-r--r--news/newsgrab/Makefile1
-rw-r--r--news/newsgrab/files/patch-newsgrab.pl43
2 files changed, 44 insertions, 0 deletions
diff --git a/news/newsgrab/Makefile b/news/newsgrab/Makefile
index 6d4640bb4013..8782c888aaf4 100644
--- a/news/newsgrab/Makefile
+++ b/news/newsgrab/Makefile
@@ -7,6 +7,7 @@
PORTNAME= newsgrab
PORTVERSION= 0.4.0
+PORTREVISION= 1
CATEGORIES= news
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= newsgrab
diff --git a/news/newsgrab/files/patch-newsgrab.pl b/news/newsgrab/files/patch-newsgrab.pl
new file mode 100644
index 000000000000..2c4227a0949f
--- /dev/null
+++ b/news/newsgrab/files/patch-newsgrab.pl
@@ -0,0 +1,43 @@
+--- newsgrab.pl.orig Wed Mar 26 14:07:11 2003
++++ newsgrab.pl Thu Jan 27 10:36:23 2005
+@@ -178,7 +178,7 @@
+ if ($input_outdir) {
+ # Create the directory for the files, if it doesn't exits.
+ if (! -e $input_outdir) {
+- if (!(mkdir $input_outdir, 0777)) {
++ if (!(mkdir $input_outdir, 0600)) {
+ stat_print "Unable to create output dir '$input_outdir'",
+ "ERROR";
+ exit 1;
+@@ -853,6 +853,7 @@
+ chomp;
+ if(/^begin\s*(\d*)\s*(.*)/) {
+ ($mode, $file) = ($1, $2);
++ $file =~ s/^.*\///g;
+ if (-e "$OUTDIR/$file") {
+ print STDERR "File: '$file' already exists. skipping\n";
+ undef $file;
+@@ -867,13 +868,8 @@
+ }
+ if (/^end/) {
+ close (OUT);
+- if (!($mode)) {
+- stat_print "No mode supplied for file", "Warning";
+- } elsif (!($file)) {
+- stat_print "No filename to chmod().. Wierd", "Error";
+- } else {
+- chmod oct($mode), "$OUTDIR/$file";
+- }
++
++ chmod 0600 , "$OUTDIR/$file";
+ # Set $file and $mode to undef, we have reached the end of this file
+ undef $file;
+ undef $mode;
+@@ -926,6 +922,7 @@
+ if(/ name=(.*)$/) {
+ $ydec_name = $1;
+ $ydec_name =~ s/\s+$//g; # Strip wierdo chars
++ $ydec_name =~ s/^.*\///g;
+ #print "Found attach ".$ydec_name." of size ".$ydec_size."\n";
+ } else {
+ print STDERR "Unknown attach name\n";