Skip to content

Commit cc6dc53

Browse files
author
David R. Morrison
committed
scripts used to build 0.5.2
1 parent 283141d commit cc6dc53

File tree

9 files changed

+190
-44
lines changed

9 files changed

+190
-44
lines changed

bindist/buildall

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fink list --tab | grep -v "virtual package" | cut -f2 | sed "s|dpkg-bootstrap||" | sed "s|Information.*seconds\.||" | xargs -n1 -t ./buildone

bindist/buildcheck

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#!/usr/bin/perl -w
2+
3+
$| = 1;
4+
require 5.006; # perl 5.6.0 or newer required
5+
use strict;
6+
7+
use Fink::Package;
8+
use Fink::PkgVersion;
9+
use Fink::Config qw($config $basepath);
10+
11+
my ($config, $configpath);
12+
$configpath = "/sw/etc/fink.conf";
13+
if (-f $configpath) {
14+
$config = &Fink::Services::read_config($configpath);
15+
} else {
16+
print "ERROR: Configuration file \"$configpath\" not found.\n";
17+
exit 1;
18+
}
19+
20+
Fink::Package->require_packages();
21+
22+
my $LOGDIR = $ENV{LOGDIR} or die "You must set the environment variable LOGDIR before running this script";
23+
24+
my $pkgspec = shift;
25+
my $package = Fink::PkgVersion->match_package($pkgspec);
26+
unless (defined $package) {
27+
die "no package found for specification '$pkgspec'!\n";
28+
}
29+
unless ($package->is_present()) {
30+
open(NOTBUILT,">>$LOGDIR/NotBuilt") or die "can't open file for writing: $LOGDIR/NotBuilt\n";
31+
my $pkgname = $package->get_name();
32+
print NOTBUILT "$pkgname\n";
33+
close(NOTBUILT) or die "can't write file: $LOGDIR/NotBuilt\n";
34+
}
35+

bindist/buildone

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ system "./purge-nonbase.sh";
55
print "Non-essential files purged...\n";
66
print "printf '\\n\\n' | sudo fink --yes build $filename > $LOGDIR/$filename.log 2>&1\n";
77
my $output = system "printf '\n\n' | sudo fink --yes build $filename > $LOGDIR/$filename.log 2>&1";
8-
8+
system "sudo ./buildcheck $filename";

bindist/current

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.5.1
1+
0.5.2

bindist/excludes

Lines changed: 12 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,24 @@
1-
--- no license specified (excluded in 0.4.0, but not in 0.4.1; license now
2-
--- present)
3-
--- class-dump
4-
--- the following are outdated compared ot the system versions! (excluded
5-
--- 0.4.0 and 0.4.1 but not in 0.5.0a: no longer present)
6-
--- apache
7-
--- php
8-
--- excluded in 0.4.0 and 0.4.1 but not 0.5.0a (license changed)
9-
--- xforms
10-
--- texpower
11-
--- excluded in 0.4.1 and 0.5.0a but not 0.5.1
12-
--- analog
13-
--- mpg123
14-
--- xinvaders
15-
--- excluded in 0.4.0, 0.4.1, 0.5.0a, and 0.5.1
161
crafty
17-
figlet
18-
freetype-hinting
19-
fvwm-icons
20-
ghx
21-
hx
22-
hxd
23-
pine
24-
povray
25-
revtex
26-
spim
27-
spim-nox
28-
tetex-texmf
29-
xephem
30-
xv
31-
--- excluded in 0.4.1, 0.5.0a, and 0.5.1
322
crafty-enormousbook
333
crafty-largebook
344
crafty-smallbook
355
crafty-tb-four
366
crafty-tb-three
7+
freehelix
8+
freetype-hinting
379
freetype-hinting-bin
3810
freetype-hinting-shlibs
39-
tads
40-
tetex-macosx
41-
unrar
42-
--- excluded in 0.5.0a and 0.5.1
43-
file
44-
host
11+
freetype2-hinting
12+
freetype2-hinting-shlibs
13+
fvwm-icons
14+
hfspax
4515
hx
4616
pdflib
4717
pdflib-shlibs
48-
pine-ssl
49-
rpl
50-
--- excluded in 0.5.1
51-
freehelix
52-
gnuplot
53-
hfspax
18+
povray
5419
rasmol
20+
rpl
21+
xephem
22+
xmame
23+
xmolwt
24+
xv

bindist/excludes-old

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
--- no license specified (excluded in 0.4.0, but not in 0.4.1; license now
2+
--- present)
3+
--- class-dump
4+
--- the following are outdated compared ot the system versions! (excluded
5+
--- 0.4.0 and 0.4.1 but not in 0.5.0a: no longer present)
6+
--- apache
7+
--- php
8+
--- excluded in 0.4.0 and 0.4.1 but not 0.5.0a (license changed)
9+
--- xforms
10+
--- texpower
11+
--- excluded in 0.4.1 and 0.5.0a but not 0.5.1
12+
--- analog
13+
--- mpg123
14+
--- xinvaders
15+
--- excluded in 0.4.0, 0.4.1, 0.5.0a, and 0.5.1
16+
crafty
17+
figlet
18+
freetype-hinting
19+
fvwm-icons
20+
ghx
21+
hx
22+
hxd
23+
pine
24+
povray
25+
revtex
26+
spim
27+
spim-nox
28+
tetex-texmf
29+
xephem
30+
xv
31+
--- excluded in 0.4.1, 0.5.0a, and 0.5.1
32+
crafty-enormousbook
33+
crafty-largebook
34+
crafty-smallbook
35+
crafty-tb-four
36+
crafty-tb-three
37+
freetype-hinting-bin
38+
freetype-hinting-shlibs
39+
tads
40+
tetex-macosx
41+
unrar
42+
--- excluded in 0.5.0a and 0.5.1
43+
file
44+
host
45+
hx
46+
pdflib
47+
pdflib-shlibs
48+
pine-ssl
49+
rpl
50+
--- excluded in 0.5.1
51+
freehelix
52+
gnuplot
53+
hfspax
54+
rasmol

bindist/excludes.log

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
crafty: Restrictive
2+
crafty-enormousbook: Restrictive
3+
crafty-largebook: Restrictive
4+
crafty-smallbook: Restrictive
5+
crafty-tb-four: Restrictive
6+
crafty-tb-three: Restrictive
7+
freehelix: Restrictive
8+
freetype-hinting: Restrictive
9+
freetype-hinting-bin: Restrictive
10+
freetype-hinting-shlibs: Restrictive
11+
freetype2-hinting: Restrictive
12+
freetype2-hinting-shlibs: Restrictive
13+
fvwm-icons: Restrictive
14+
hfspax: Restrictive
15+
hx: Restrictive
16+
pdflib: Restrictive
17+
pdflib-shlibs: Restrictive
18+
povray: Restrictive
19+
rasmol: Restrictive
20+
rpl: Restrictive
21+
xephem: Restrictive
22+
xmame: Restrictive
23+
xmolwt: Restrictive
24+
xv: Restrictive

bindist/licensecheck

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
#!/usr/bin/perl -w
2+
3+
$| = 1;
4+
require 5.006; # perl 5.6.0 or newer required
5+
use strict;
6+
7+
use Fink::Package;
8+
use Fink::PkgVersion;
9+
use Fink::Config qw($config $basepath);
10+
11+
my ($config, $configpath);
12+
$configpath = "/sw/etc/fink.conf";
13+
if (-f $configpath) {
14+
$config = &Fink::Services::read_config($configpath);
15+
} else {
16+
print "ERROR: Configuration file \"$configpath\" not found.\n";
17+
exit 1;
18+
}
19+
20+
Fink::Package->require_packages();
21+
22+
my ($pname, $package, $license);
23+
24+
my %allowed_license_values = map {$_, 1}
25+
(
26+
"Bundle",
27+
"GPL", "LGPL", "GFDL", "LDP", "BSD", "GPL/LGPL", "GPL/LGPL/LDP",
28+
"GPL/GFDL", "GPL/LGPL/GFDL", "LGPL/GFDL",
29+
"Artistic", "Artistic/GPL",
30+
"OSI-Approved",
31+
"Restrictive/Distributable",
32+
# "Commercial", "Restrictive",
33+
"Public Domain"
34+
);
35+
36+
37+
open(EXCLUDES, ">excludes") or die "can't write excludes\n";
38+
open(EXCLUDESLOG, ">excludes.log") or die "can't write excludes.log\n";
39+
40+
foreach $pname (@ARGV) {
41+
#$pname = shift;
42+
#$package = Fink::Package->package_by_name($pname);
43+
$package = Fink::PkgVersion->match_package($pname);
44+
#print "$package\n";
45+
if (not $license = $package->param("License")) {
46+
if ($package->{_type} eq "bundle") {
47+
$license = "Bundle";
48+
} else {
49+
$license = "No license";
50+
}
51+
}
52+
print "$pname: $license\n";
53+
if (not $allowed_license_values{$license}) {
54+
print EXCLUDESLOG "$pname: $license\n";
55+
print EXCLUDES "$pname\n";
56+
}
57+
58+
}
59+
60+
close(EXCLUDES) or die "can't write excludes\n";
61+
close(EXCLUDESLOG) or die "can't write excludes.log\n";

bindist/makeexcludes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fink list --tab | grep -v "virtual package" | cut -f2 | sed "s|Reading.*\.\.\.||" | sed "s|Information.*seconds\.||" | xargs ./licensecheck

0 commit comments

Comments
 (0)