emdebian-grip-3.1.0/ 0000755 0000000 0000000 00000000000 12145511270 011102 5 ustar emdebian-grip-3.1.0/logs.php 0000644 0000000 0000000 00000016540 12141147174 012571 0 ustar
#
# This package is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
# A few notes:
# 1. There is one file / data source per suite - the reprepro logs.
# 2. Configuration is internal
##### config #####
$buildlog_path = "/srv/grip/grip/logs/";
$template_file = "/var/www/toolchains/emdebian.php";
$default_days = 7;
$supported_arches = array ("i386", "amd64", "arm", "armel",
"powerpc", "mips", "mipsel" );
$components = array ("main", "dev", "doc", "debug");
#### end config ##
$SELF = "http://".$_SERVER["HTTP_HOST"].$_SERVER["PHP_SELF"];
$now = date("D, d M Y H:i:s T");
$num_days = $default_days;
if (($_GET['days'] != '')) {
$num_days = htmlspecialchars ($_GET['days']);
$num_days = preg_replace ('/\.+\/+/', "", $num_days);
}
$suite="sid-grip";
if (($_GET['suite'] != '')) {
$suite = htmlspecialchars ($_GET['suite']);
$suite = preg_replace ('/\.+\/+/', "", $suite);
}
$feed = "
Only logs from the last $num_days days are shown.\n";
$feed .="Show all logs, or \n";
if ($num_days == $default_days) {
$feed .= "show logs for 28 days.
emdebian-grip-3.1.0/vendor/ 0000755 0000000 0000000 00000000000 12145511270 012377 5 ustar emdebian-grip-3.1.0/vendor/baked/ 0000755 0000000 0000000 00000000000 12145511270 013445 5 ustar emdebian-grip-3.1.0/vendor/baked/main.profile 0000644 0000000 0000000 00000000245 11601445421 015754 0 ustar # The default profile for Emdebian Baked
Profile: emdebian-baked/main
Extends: emdebian-grip/main
Disable-Tags: no-shlibs-control-file,
postinst-must-call-ldconfig
emdebian-grip-3.1.0/vendor/grip/ 0000755 0000000 0000000 00000000000 12145511270 013340 5 ustar emdebian-grip-3.1.0/vendor/grip/main.profile 0000644 0000000 0000000 00000000642 11776346346 015673 0 ustar # The default profile for Emdebian Grip
Profile: emdebian-grip/main
Extends: debian/main
Disable-Tags: debian-changelog-file-missing,
copyright-file-compressed,
copyright-without-copyright-notice,
description-contains-invalid-control-statement,
binary-without-manpage,
md5sums-lists-nonexisting-file,
file-missing-in-md5sums,
no-upstream-changelog,
no-homepage-field,
changelog-file-missing-in-native-package
emdebian-grip-3.1.0/vendor/emdebian-baked 0000644 0000000 0000000 00000000371 11543552642 015144 0 ustar Vendor: emdebian-baked
Vendor-Name: Emdebian Baked
Vendor-URL: http://www.emdebian.org/baked/
Bugs: debbugs://bugs.debian.org
Bugs-Package: buildd.emdebian.org
Cross-Compiling: yes
Grip-Build-Option: usebaked
Parent: Debian
Short-Desc-Suffix: baked
emdebian-grip-3.1.0/vendor/emdebian-grip 0000644 0000000 0000000 00000000366 11543552642 015043 0 ustar Vendor: emdebian-grip
Vendor-Name: Emdebian Grip
Vendor-URL: http://www.emdebian.org/grip/
Bugs: debbugs://bugs.debian.org
Bugs-Package: buildd.emdebian.org
Cross-Compiling: no
Grip-Build-Option: usegrip
Parent: Debian
Short-Desc-Suffix: gripped
emdebian-grip-3.1.0/grip-selections.pl 0000755 0000000 0000000 00000014027 11543552642 014566 0 ustar #!/usr/bin/perl
=pod
=head1 NAME
grip-selections.pl - compare a selection file against the current filter
=cut
use File::Basename;
=head1 Synopsis
grip-selections.pl -b|--base PATH -f|--file FILE [--filter-name STRING]
grip-selections.pl -?|-h|--help
=head1 Description
Originally designed for use by the administrator of the Grip repository,
this script could be modified to work for users too. The current
implementation reads in the content of a text file created with:
$ dpkg --get-selections > selections.txt
$ grip-selections -b ${base} -f selections.txt
This file is expected to be created on the device running Emdebian Grip
where the user has added packages from Debian and would like those
packages supported within Grip. The repository admin then uses this
routine to compare the requested package list against the current filter
and pick out the packages to add to the repository using em_autogrip.
(Note that the listed packages are binary packages - em_autogrip will
work out the relevant source package but only if the package data is
available using apt-cache on the machine running em_autogrip and
available via the mirror configured for use with em_autogrip.)
By using dpkg --get-selections, it is hoped that the list of packages
will automatically include all dependencies but this assumption will
break if the selection is old or not from a machine running unstable
or if the selection is pre-processed in some way.
The script could also use LWP to download the current filter file,
so that users could do the comparison themselves. If this would be
useful, please submit a wishlist bug against emdebian-grip asking
for this modification.
The base path is really only a path to the pkglist filter file
and is expected to be in $base/filter/conf/ so this mini-tree can be
replicated to test pkglist files from remote repositories.
=cut
=head1 Copyright and Licence
Copyright (C) 2009 Neil Williams
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .
=cut
my $prog = basename($0);
$filter_name = 'filter';
my $www;
while( @ARGV ) {
$_= shift( @ARGV );
last if m/^--$/;
if (!/^-/) {
unshift(@ARGV,$_);
last;
}
elsif (/^(-\?|-h|--help|--version)$/) {
&usageversion();
exit (0);
}
elsif (/^(-b|--base-path)$/) {
$base = shift;
}
elsif (/^(--filter-name)$/) {
$filter_name = shift;
}
elsif (/^(-f|--file)$/) {
$file = shift;
}
elsif (/^(-w|--www)$/) {
$www++;
}
else {
die "$prog: Unknown option $_.\n";
}
}
die "ERR: Please specify an existing directory for the base-path.\n"
if (not defined $base and not defined $www);
$base .= '/' if ("$base" !~ m:/$:);
if (not -d $base and not defined $www)
{
print "ERR: Please specify an existing directory for the base-path: $base";
exit 1;
}
if (defined $www)
{
my $dir = `mktemp -t -d "grip-select.XXXXXX"`;
chomp ($dir);
mkdir "$dir/conf";
system ("wget -O $dir/conf/pkglist http://www.emdebian.org/grip/pkglist");
$www = $dir;
$base = $dir;
$filter_name = "/";
}
%pkg=();
open (SELECT, "$file") or die ("ERR: No file: $file $!\n");
@lines=