forked from Lainports/freebsd-ports
instead of the developers' own site, because they insist on using name of "download.html" and don't provide a useful mtime. The above was requested by one named: jhell,v While here, add patches from Debian/Ubuntu to fix varargs-manipulations, and from Gentoo to fix mode of the newly-created files. Also, make sure the man-page of selthresh is installed. Replace my hack from 2008 with the MAKE_JOBS_SAFE=yes.
24 lines
670 B
Text
24 lines
670 B
Text
Obtained from Gentoo:
|
|
|
|
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/app-text/clara/files/
|
|
|
|
--- pgmblock.c 2002-04-29 14:26:13.000000000 +0000
|
|
+++ pgmblock.c 2009-03-05 02:51:43.000000000 +0000
|
|
@@ -161,7 +161,7 @@
|
|
|
|
printf("%d rare pixels (%1.4f)\n",t,((float)t)/(w*h));
|
|
|
|
- F = open("map",O_WRONLY|O_CREAT);
|
|
+ F = open("map",O_WRONLY|O_CREAT, 0644);
|
|
write(F,m,h*bpl);
|
|
write(F,map,256);
|
|
close(F);
|
|
@@ -197,7 +197,7 @@
|
|
{
|
|
int i,j,F;
|
|
|
|
- F = open("map",O_RDONLY|O_CREAT);
|
|
+ F = open("map",O_RDONLY|O_CREAT, 0644);
|
|
read(F,m,h*bpl);
|
|
read(F,map,256);
|
|
close(F);
|