Gentooized Novell-client & initial linamh ebuilds

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@50 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
geos_one 2007-02-19 13:54:27 +00:00
parent 46b23d3b00
commit d2445030fe
23 changed files with 781 additions and 5 deletions

View File

@ -0,0 +1,8 @@
# ChangeLog for app-cdr/liblightscribe
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
19 Feb 2007; Mario Fetka <mario-fetka@gmx.at> +files/80liblightscribe,
+liblightscribe-1.4.113.1.ebuild, +liblightscribe-1.4.142.1.ebuild:
Inital ebuild

View File

@ -0,0 +1,25 @@
AUX 80liblightscribe 30 RMD160 9c63f02504848d22ceccf37d261315682d6847da SHA1 13050cdb857110713ef76c27d7334dbfd79dc3df SHA256 ec396642c57e39565e5bcf8bbec587789a3c40450a241e366b417f2f17b4c9e8
MD5 6f9eb8bc141413ae6fe73fd302f8b400 files/80liblightscribe 30
RMD160 9c63f02504848d22ceccf37d261315682d6847da files/80liblightscribe 30
SHA256 ec396642c57e39565e5bcf8bbec587789a3c40450a241e366b417f2f17b4c9e8 files/80liblightscribe 30
DIST lightscribe-1.4.113.1-linux-2.6-intel.rpm 481410 RMD160 b4b60e81700f30a9aee4bdb31d17f76c594a0ddc SHA1 79855e36bff6ceb15eb5558ce0f358045182c5ac SHA256 af3d4620bb15a2026e243ccb915481688c6636b85cbeaf6a9b275a2ad4fbce56
DIST lightscribe-1.4.142.1-linux-2.6-intel.rpm 497525 RMD160 e803fe21d79ef9478a6b7fab01718b44b77f5617 SHA1 8fa4d951e7af8dee2e983f03191d8d73dcb052a5 SHA256 7924c646e5d03989ca39c958d0cff5d2a0b2d8b6db86a9d81f504f7780cb9572
DIST lightscribePublicSDK-1.4.142.1-linux-2.6-intel.rpm 619747 RMD160 8d92f0da78effe85d3c896780208522151fda930 SHA1 c652fcfb33472322b9e008108736b2bd2bb91ad4 SHA256 56f63b4e26bf566cd1b352970c074c0a1853b49a358fa7488fad13456eea3217
EBUILD liblightscribe-1.4.113.1.ebuild 982 RMD160 b24085ebe128b6e38d74ca6bf035df775faf2944 SHA1 5a4385592feb1bf87ff24aad0403964068c93859 SHA256 b840ced3434888c07e8f57e901062ecbbd0d1cca9bd70126275b2cb2a64cf7f4
MD5 aca96f3ba9acc84defc5cf1a2c47c31a liblightscribe-1.4.113.1.ebuild 982
RMD160 b24085ebe128b6e38d74ca6bf035df775faf2944 liblightscribe-1.4.113.1.ebuild 982
SHA256 b840ced3434888c07e8f57e901062ecbbd0d1cca9bd70126275b2cb2a64cf7f4 liblightscribe-1.4.113.1.ebuild 982
EBUILD liblightscribe-1.4.142.1.ebuild 1182 RMD160 ae236e91f1f419bf34d3f7676c65e99f7240a9f5 SHA1 6a6b26c5cc7d2282e431c54b0e93251351b38a04 SHA256 1277fa9db322dca4f226470872fce618acbb287c04d2d56012b4de066e2d2290
MD5 0b588165b7bd302ade2abfb56a763e78 liblightscribe-1.4.142.1.ebuild 1182
RMD160 ae236e91f1f419bf34d3f7676c65e99f7240a9f5 liblightscribe-1.4.142.1.ebuild 1182
SHA256 1277fa9db322dca4f226470872fce618acbb287c04d2d56012b4de066e2d2290 liblightscribe-1.4.142.1.ebuild 1182
MISC ChangeLog 283 RMD160 e84cd36b5348fca00cf31f61737ef8084f0f501d SHA1 c2a9462a436798b0a2b4af1a114893faadaeeaaf SHA256 3f17a096256217535bc8e5d34b3980167514dc376482be28322203eab15c5ad1
MD5 f72b084f8c082e969ccc294e8b654ec2 ChangeLog 283
RMD160 e84cd36b5348fca00cf31f61737ef8084f0f501d ChangeLog 283
SHA256 3f17a096256217535bc8e5d34b3980167514dc376482be28322203eab15c5ad1 ChangeLog 283
MD5 ce4d7945e8f2398e0d7ade239057268e files/digest-liblightscribe-1.4.113.1 304
RMD160 21ca2dc16da3b6c26b3f531668d22fa33989a0f7 files/digest-liblightscribe-1.4.113.1 304
SHA256 186e0175c3a18bec56dec204701b72bc46e448dbc84a9bcd3cf65aacd11b5a5d files/digest-liblightscribe-1.4.113.1 304
MD5 01bc59696fedbc860fa99aa130a793c3 files/digest-liblightscribe-1.4.142.1 635
RMD160 ab3d19485df236b17f3910a98bc3a706733593a5 files/digest-liblightscribe-1.4.142.1 635
SHA256 c83ea202f4fd36a4819cbec2c81db0e9fb637732d2858af49f129d03d8179ccd files/digest-liblightscribe-1.4.142.1 635

View File

@ -0,0 +1 @@
LDPATH=/opt/liblightscribe/lib

View File

@ -0,0 +1,3 @@
MD5 9a692c0fa12501598d5c495f028e2a3e lightscribe-1.4.113.1-linux-2.6-intel.rpm 481410
RMD160 b4b60e81700f30a9aee4bdb31d17f76c594a0ddc lightscribe-1.4.113.1-linux-2.6-intel.rpm 481410
SHA256 af3d4620bb15a2026e243ccb915481688c6636b85cbeaf6a9b275a2ad4fbce56 lightscribe-1.4.113.1-linux-2.6-intel.rpm 481410

View File

@ -0,0 +1,6 @@
MD5 4875900e0ba1a127bbe219d42d6c1ace lightscribe-1.4.142.1-linux-2.6-intel.rpm 497525
RMD160 e803fe21d79ef9478a6b7fab01718b44b77f5617 lightscribe-1.4.142.1-linux-2.6-intel.rpm 497525
SHA256 7924c646e5d03989ca39c958d0cff5d2a0b2d8b6db86a9d81f504f7780cb9572 lightscribe-1.4.142.1-linux-2.6-intel.rpm 497525
MD5 933978491dfc1bb23626894ba3d88c27 lightscribePublicSDK-1.4.142.1-linux-2.6-intel.rpm 619747
RMD160 8d92f0da78effe85d3c896780208522151fda930 lightscribePublicSDK-1.4.142.1-linux-2.6-intel.rpm 619747
SHA256 56f63b4e26bf566cd1b352970c074c0a1853b49a358fa7488fad13456eea3217 lightscribePublicSDK-1.4.142.1-linux-2.6-intel.rpm 619747

View File

@ -0,0 +1,40 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils rpm
DESCRIPTION="Binary only Library for LightScribe"
HOMEPAGE="http://www.lacie.com/products/product.htm?pid=10803"
SRC_URI="http://www.lacie.com/download/drivers/lightscribe-${PV}-linux-2.6-intel.rpm"
LICENSE="HP-LightScribe"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND=""
RDEPEND="virtual/libc
sys-libs/libstdc++-v3"
RESTRICT="nomirror nostrip"
src_unpack() {
rpm_src_unpack
}
src_compile() { :; }
src_install() {
dodoc ${WORKDIR}/usr/share/doc/*
insinto /opt/lightscribe/lib/lightscribe
doins -r ${WORKDIR}/usr/lib/lightscribe/*
insinto /opt/lightscribe/lib
doins ${WORKDIR}/usr/lib/liblightscribe.so.*
dosym /opt/lightscribe/lib/liblightscribe.so.1 /opt/lightscribe/lib/liblightscribe.so
insinto /etc
doins -r ${WORKDIR}/etc/*
dosed "s%/usr/lib%/opt/lightscribe/lib%" /etc/lightscribe.rc
doenvd ${FILESDIR}/80liblightscribe
}

View File

@ -0,0 +1,43 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils rpm
DESCRIPTION="Binary only Library for LightScribe"
HOMEPAGE="http://www.lightscribe.com/"
SRC_URI="http://www.lightscribe.com/downloadSection/linux/downloads/lss/lightscribe-${PV}-linux-2.6-intel.rpm
http://www.lightscribe.com/downloadSection/linux/downloads/lpSDK/lightscribePublicSDK-${PV}-linux-2.6-intel.rpm"
LICENSE="HP-LightScribe"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND=""
RDEPEND="virtual/libc
sys-libs/libstdc++-v3"
RESTRICT="nomirror nostrip"
src_unpack() {
rpm_src_unpack
}
src_compile() { :; }
src_install() {
dodoc ${WORKDIR}/usr/share/doc/*
insinto /opt/liblightscribe/lib/lightscribe
doins -r ${WORKDIR}/usr/lib/lightscribe/*
insinto /opt/liblightscribe/lib
doins ${WORKDIR}/usr/lib/liblightscribe.so.*
dosym /opt/liblightscribe/lib/liblightscribe.so.1 /opt/liblightscribe/lib/liblightscribe.so
insinto /usr/include/liblightsribe
doins -r ${WORKDIR}/usr/include/*
insinto /etc
doins -r ${WORKDIR}/etc/*
dosed "s%/usr/lib%/opt/liblightscribe/lib%" /etc/lightscribe.rc
doenvd ${FILESDIR}/80liblightscribe
}

View File

@ -0,0 +1,7 @@
# ChangeLog for media-gfx/jpeg2pdf
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
19 Feb 2007; Mario Fetka <mario-fetka@gmx.at> +jpeg2pdf-0.12.ebuild:
Initial Ebuild

View File

@ -0,0 +1,12 @@
DIST jpeg2pdf-0.12.tar.bz2 19186 RMD160 272f1ffce8474c2d037363073f409e867ebc4581 SHA1 c00b0e64032c244ce0e70d2c10e21010a5e9c04f SHA256 2e352cd458c8bab4de14f9237902e6869675bd40ff02f6e91f55cce7c18d55d3
EBUILD jpeg2pdf-0.12.ebuild 441 RMD160 c0ca67a10849c9cd90d1e0e38ec15a53222de04b SHA1 1c81bf90900660684f280205c5cd6e1e64acdb9b SHA256 fb474a9af59336df516f53ed84555a185e798cbc4027b273bca4fd6f14e1a210
MD5 7a4e1f9b8af5507ba4f10c704bc70c9a jpeg2pdf-0.12.ebuild 441
RMD160 c0ca67a10849c9cd90d1e0e38ec15a53222de04b jpeg2pdf-0.12.ebuild 441
SHA256 fb474a9af59336df516f53ed84555a185e798cbc4027b273bca4fd6f14e1a210 jpeg2pdf-0.12.ebuild 441
MISC ChangeLog 208 RMD160 d830d93f5cda5708bd2685c5502337444932959f SHA1 acf3d78dd5f1b7eaeb7ce6e2a3c47c1ab5100fc7 SHA256 223d0b9756d2438b49cb44a4bb7a523a33aaddf703895b45c1f5edf0ac87a9ac
MD5 2062fab0173500e0fa1f82be069c9f34 ChangeLog 208
RMD160 d830d93f5cda5708bd2685c5502337444932959f ChangeLog 208
SHA256 223d0b9756d2438b49cb44a4bb7a523a33aaddf703895b45c1f5edf0ac87a9ac ChangeLog 208
MD5 44c5f84addc2d74bbb280a0552575ded files/digest-jpeg2pdf-0.12 241
RMD160 63fdd1a64ce8263638daa2cdde570f1287f8e682 files/digest-jpeg2pdf-0.12 241
SHA256 57cd32445f7c18bbb09f3d85620a36df3b66c3f653f8d6be7f04c64d1257718f files/digest-jpeg2pdf-0.12 241

View File

@ -0,0 +1,3 @@
MD5 65e721d5e284f4e1089fc8c45a881750 jpeg2pdf-0.12.tar.bz2 19186
RMD160 272f1ffce8474c2d037363073f409e867ebc4581 jpeg2pdf-0.12.tar.bz2 19186
SHA256 2e352cd458c8bab4de14f9237902e6869675bd40ff02f6e91f55cce7c18d55d3 jpeg2pdf-0.12.tar.bz2 19186

View File

@ -0,0 +1,24 @@
# {{UCPT_Ebuild Header}} <pre>
inherit eutils
DESCRIPTION="Merge JPEG files into PDF"
SRC_URI="http://koan.studentenweb.org/software/${P}.tar.bz2"
HOMEPAGE="http://koan.studentenweb.org/software/jpeg2pdf.html"
SLOT=""
LICENSE="X11/own"
KEYWORDS="x86"
IUSE=""
DEPEND=">=dev-lang/ruby-1.8.2"
src_install() {
dodoc LICENSE README
ruby install.rb config --prefix=${D}/usr
ruby install.rb install
rm -f ${D}/usr/bin/test.rb
}
#</pre>

View File

@ -0,0 +1,7 @@
# ChangeLog for net-www/mnogosearch
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
19 Feb 2007; Mario Fetka <mario-fetka@gmx.at> +mnogosearch-3.2.34.ebuild:
Initial Ebuild

View File

@ -0,0 +1,2 @@
MD5 8280cb2d9a3a98be4257d913525a62e2 files/digest-mnogosearch-3.2.34 71
MD5 0439cf2131b4b3d7185895cf78415d41 mnogosearch-3.2.34.ebuild 869

View File

@ -0,0 +1 @@
MD5 1706fcba5abde4bbea794379a9f672d0 mnogosearch-3.2.34.tar.gz 3354036

View File

@ -0,0 +1,47 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
inherit flag-o-matic eutils
IUSE="mysql ssl"
MY_P=${P/_/}
S=${WORKDIR}/${MY_P}
DESCRIPTION="Full-featured web search engine"
SRC_URI="http://freshmeat.net/redir/udmsearch/6509/url_tgz/${MY_P}.tar.gz"
HOMEPAGE="http://www.mnogosearch.org/"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 sparc hppa alpha ppc ~mips amd64"
src_unpack() {
unpack ${A}
cd ${S}
}
src_compile() {
local modules myconf
econf \
--prefix=/usr/local/mnogosearch
${myconf} || die "bad ./configure"
emake || die "compile problem"
}
src_install() {
make DESTDIR=${D} install || die
}
pkg_postinst() {
einfo
einfo 'You package files in /usr/local/mnogosearch'
einfo
}

403
scripts/echangelog Executable file
View File

@ -0,0 +1,403 @@
#!/usr/bin/perl -w
#
# echangelog: Update the ChangeLog for an ebuild. For example:
#
# $ echangelog 'Add ~alpha to KEYWORDS'
# 4a5,7
# > 10 Feb 2003; Aron Griffis <agriffis@gentoo.org> oaf-0.6.8-r1.ebuild :
# > Add ~alpha to KEYWORDS
# >
use strict;
use POSIX qw(strftime getcwd setlocale);
# Fix bug 21022 by restricting to C locale
setlocale(&POSIX::LC_ALL, "C");
use Text::Wrap;
$Text::Wrap::columns = 77;
$Text::Wrap::unexpand = 0;
# Global variables
my (@files, @ebuilds, @conflicts, @trivial, @unknown, @new_versions, %actions);
my ($input, $editor, $entry, $user, $date, $text, $version, $year, $vcs);
my %vcs = ( cvs => { diff => "cvs -f -U0 diff",
status => "cvs -fn up",
add => "cvs -f add",
skip => 6,
entries => "CVS/Entries" },
svn => { diff => "svn diff -N",
status => "svn status",
add => "svn add",
skip => 4,
entries => ".svn/entries" },
git => { diff => "git diff",
status => "git up",
add => "git add",
skip => 0,
entries => "wtf" },
nov => { diff => "",
status => "",
add => "",
skip => 0,
entries => "wtf" }
);
# Figure out what kind of repo we are in.
if ( -d "CVS" ) {
$vcs = "cvs";
} elsif ( -d '.svn' ) {
$vcs = "svn";
} elsif ( -d '.git' ) {
$vcs = "git";
} else {
print STDERR "** NOTE: No CVS, .git, .svn directories found, cannot know modifications\n";
$vcs = "nov";
}
# Read the current ChangeLog
if (-f 'ChangeLog') {
open I, '<ChangeLog' or die "Can't open ChangeLog for input: $!\n";
{ local $/ = undef; $text = <I>; }
close I;
} else {
# No ChangeLog here, maybe we should make one...
if (<*.ebuild>) {
open I, '<../../skel.ChangeLog'
or die "Can't open ../../skel.ChangeLog for input: $!\n";
{ local $/ = undef; $text = <I>; }
close I;
my ($cwd) = getcwd();
$cwd =~ m|.*/(\w+-\w+)/([^/]+)|
or die "Can't figure out category/package.. sorry!\n";
my ($category, $package_name) = ($1, $2);
$text =~ s/^\*.*//ms; # don't need the fake entry
$text =~ s/<CATEGORY>/$category/;
$text =~ s/<PACKAGE_NAME>/$package_name/;
} else {
die "This should be run in a directory with ebuilds...\n";
}
}
# Figure out what has changed around here
open C, $vcs{$vcs}{status}.' 2>&1 |' or die "Can't run ".$vcs{$vcs}{status}.": $!\n";
while (<C>) {
if (/^C\s+\+?\s+(\S+)/) {
push @conflicts, $1;
next;
} elsif (/^\?\s+\+?\s+(\S+)/) {
push @unknown, $1;
$actions{$1} = '+';
next;
} elsif (/^([ARMD])\s+\+?\s+(\S+)/) {
push @files, $2;
($actions{$2} = $1) =~ tr/ARDM/+--/d;
}
}
# Separate out the trivial files for now
@files = grep {
!/files.digest|Manifest|ChangeLog|^files$|^\.$/ or do { push @trivial, $_; 0; }
} @files;
@unknown = grep {
!/files.digest|Manifest|ChangeLog|^files$|^\.$/ or do { push @trivial, $_; 0; }
} @unknown;
# Don't allow any conflicts
if (@conflicts) {
print STDERR <<EOT;
$vcs reports the following conflicts. Please resolve them before
running echangelog.
EOT
print STDERR map "C $_\n", @conflicts;
exit 1;
}
# Don't allow unknown files (other than the trivial files that were separated
# out above)
if (@unknown) {
print STDERR <<EOT;
$vcs reports the following unknown files. Please use "cvs add" before
running echangelog, or remove the files in question.
EOT
print STDERR map "? $_\n", @unknown;
exit 1;
}
# Sort the list of files as portage does. None of the operations through
# the rest of the script should break this sort.
sub sortfunc($$) {
my ($a, $b) = @_;
(my $va = $a) =~ s/.*?-(\d.*?)(?:\.ebuild)?$/$1/;
(my $vb = $b) =~ s/.*?-(\d.*?)(?:\.ebuild)?$/$1/;
my ($na, $sa, $sna, $ra) = ($va =~ /^(.*?)(?:_(alpha|beta||pre|rc|p)(\d*))?(?:-r(\d+))?$/);
my ($nb, $sb, $snb, $rb) = ($vb =~ /^(.*?)(?:_(alpha|beta||pre|rc|p)(\d*))?(?:-r(\d+))?$/);
my (@na) = split /\.|(?<=\d)(?=[^\d\.])/, $na;
my (@nb) = split /\.|(?<=\d)(?=[^\d\.])/, $nb;
my $retval;
#
# compare version numbers first
#
for (my $i = 0; defined $na[$i] or defined $nb[$i]; $i++) {
# def vs. undef
return +1 if defined $na[$i] and !defined $nb[$i];
return -1 if defined $nb[$i] and !defined $na[$i];
# num vs. num
if ($na[$i] =~ /^\d/ and $nb[$i] =~ /^\d/) {
$retval = ($na[$i] <=> $nb[$i]);
return $retval if $retval;
next;
}
# char vs. char
if ($na[$i] =~ /^\D/ and $nb[$i] =~ /^\D/) {
$retval = ($na[$i] cmp $nb[$i]);
return $retval if $retval;
next;
}
# num vs. char
$retval = ($na[$i] =~ /\d/ and -1 or +1);
return $retval;
}
#
# compare suffix second
#
if (defined $sa and !defined $sb) {
return +2 if $sa eq "p";
return -2;
}
if (defined $sb and !defined $sa) {
return -3 if $sb eq "p";
return +3;
}
if (defined $sa) { # and defined $sb
$retval = ($sa cmp $sb);
if ($retval) {
return +4 if $sa eq "p";
return -4 if $sb eq "p";
return $retval; # suffixes happen to be alphabetical order, mostly
}
# compare suffix number
return +5 if defined $sna and !defined $snb;
return -5 if defined $snb and !defined $sna;
if (defined $sna) { # and defined $snb
$retval = ($sna <=> $snb);
return $retval if $retval;
}
}
#
# compare rev third
#
return +6 if defined $ra and !defined $rb;
return -6 if defined $rb and !defined $ra;
if (defined $ra) { # and defined $rb
return ($ra <=> $rb);
}
#
# nothing left to compare
#
return 0;
}
@files = sort sortfunc @files;
# Forget ebuilds that only have changed copyrights, unless that's all
# the changed files we have
# does not work with svn TODO
#@ebuilds = grep /\.ebuild$/, @files;
#@files = grep !/\.ebuild$/, @files;
if (@ebuilds) {
open C, $vcs{$vcs}{diff}.@ebuilds." 2>&1 |" or die "Can't run: ".$vcs{$vcs}{diff}."$!\n";
$_ = <C>;
while (defined $_) {
if (/^$vcs diff: (([^\/]*?)\.ebuild) was removed/) {
push @files, $1;
}
elsif (/^Index: (([^\/]*?)\.ebuild)\s*$/) {
my ($f, $v) = ($1, $2);
# check if more than just copyright date changed.
# skip some lines
foreach(1..$vcs{$vcs}{skip}){
$_ = <C>;
}
while (<C>) {
last if /^[A-Za-z]/;
if (/^[-+](?!# Copyright)/) {
push @files, $f;
last;
}
}
# at this point we've either added $f to @files or not,
# and we have the next line in $_ for processing
next;
}
elsif (/^$vcs.*?: (([^\/]*?)\.ebuild) is a new entry/) {
push @files, $1;
push @new_versions, $2; # new ebuild, will create a new entry
}
# other cvs output is ignored
$_ = <C>;
}
}
close C;
# When a package move occurs, the versions appear to be new even though they are
# not. Trim them from @new_versions in that case.
@new_versions = grep { $text !~ /^\*\Q$_\E\s/m } @new_versions;
# Check if we have any files left, otherwise re-insert ebuild list
# (of course, both might be empty anyway)
@files = @ebuilds unless (@files);
# Allow ChangeLog entries with no changed files, but give a fat warning
unless (@files) {
print STDERR "**\n";
print STDERR "** NOTE: No non-trivial changed files found. Normally echangelog\n";
print STDERR "** should be run after all affected files have been added and/or\n";
print STDERR "** modified. Did you forget to cvs add?\n";
print STDERR "**\n";
@files = sort sortfunc @trivial;
@files = qw/ChangeLog/ unless @files; # last resort to put something in the list
}
# Get the input from the cmdline, editor or stdin
if ($ARGV[0]) {
$input = "@ARGV";
} else {
# Testing for defined() allows ECHANGELOG_EDITOR='' to cancel EDITOR
$editor = defined($ENV{'ECHANGELOG_EDITOR'}) ? $ENV{'ECHANGELOG_EDITOR'} :
$ENV{'EDITOR'} || undef;
if ($editor) {
system("$editor ChangeLog.new");
if ($? != 0) {
# This usually happens when the editor got forcefully killed; and
# the terminal is probably messed up: so we reset things.
system('/usr/bin/stty sane');
print STDERR "Editor died! Reverting to stdin method.\n";
undef $editor;
} else {
if (open I, "<ChangeLog.new") {
local $/ = undef;
$input = <I>;
close I;
} else {
print STDERR "Error opening ChangeLog.new: $!\n";
print STDERR "Reverting to stdin method.\n";
undef $editor;
}
unlink 'ChangeLog.new';
}
}
unless ($editor) {
print "Please type the log entry: use Ctrl-d to finish, Ctrl-c to abort...\n";
local $/ = undef;
$input = <>;
}
}
die "Empty entry; aborting\n" unless $input =~ /\S/;
# If there are any long lines, then wrap the input at $columns chars
# (leaving 2 chars on left, one char on right, after adding indentation below).
$input =~ s/^\s*(.*?)\s*\z/$1/s; # trim whitespace
$input = Text::Wrap::fill('', '', $input) if ($input =~ /^.{80}/m);
$input =~ s/^/ /gm; # add indentation
# Prepend the user info to the input
unless ($user = $ENV{'ECHANGELOG_USER'}) {
my ($fullname, $username) = (getpwuid($<))[6,0];
$fullname =~ s/,.*//; # remove GECOS, bug 80011
$user = sprintf "%s <%s\@gentoo.org>", $fullname, $username;
}
# Make sure that we didn't get "root"
die "Please set ECHANGELOG_USER or run as non-root\n" if $user =~ /<root@/;
$date = strftime("%d %b %Y", gmtime);
$entry = "$date; $user ";
$entry .= join ', ', map "$actions{$_}$_", @files;
$entry .= ':';
$entry = Text::Wrap::fill(' ', ' ', $entry); # does not append a \n
$entry .= "\n$input"; # append user input
# Each one of these regular expressions will eat the whitespace
# leading up to the next entry (except the two-space leader on the
# front of a dated entry), so it needs to be replaced with a
# double carriage-return. This helps to normalize the spacing in
# the ChangeLogs.
if (@new_versions) {
# Insert at the top with a new version marker
$text =~ s/^( .*? ) # grab header
\s*\n(?=\ \ \d|\*|\z) # suck up trailing whitespace
/"$1\n\n" .
join("\n", map "*$_ ($date)", reverse @new_versions) .
"\n\n$entry\n\n"/sxe
or die "Failed to insert new entry (4)\n";
} else {
# Changing an existing patch or ebuild, no new version marker
# required
$text =~ s/^( .*? ) # grab header
\s*\n(?=\ \ \d|\*|\z) # suck up trailing whitespace
/$1\n\n$entry\n\n/sx
or die "Failed to insert new entry (3)\n";
}
sub update_copyright {
my ($t) = @_;
(my $year = $date) =~ s/.* //;
$t =~ s/^# Copyright \d+(?= )/$&-$year/m or
$t =~ s/^(# Copyright \d+)-(\d+)/$1-$year/m;
return $t;
}
# Update the copyright year in the ChangeLog
$text = update_copyright($text);
# Write the new ChangeLog
open O, '>ChangeLog.new' or die "Can't open ChangeLog.new for output: $!\n";
print O $text or die "Can't write ChangeLog.new: $!\n";
close O or die "Can't close ChangeLog.new: $!\n";
# Update affected ebuild copyright dates. There is no reason to update the
# copyright lines on ebuilds that haven't changed. I verified this with an IP
# lawyer.
for my $e (grep /\.ebuild$/, @files) {
my ($etext, $netext);
open E, "<$e" or warn("Can't read $e to update copyright year\n"), next;
{ local $/ = undef; $etext = <E>; }
close E;
# Attempt the substitution and compare
$netext = update_copyright($etext);
next if $netext eq $etext; # skip this file if no change.
# Write the new ebuild
open E, ">$e.new" or warn("Can't open $e.new\n"), next;
print E $netext and
close E or warn("Can't write $e.new\n"), next;
# Move things around and show the diff
system "diff -U 0 $e $e.new";
rename "$e.new", $e or warn("Can't rename $e.new: $!\n");
}
# Move things around and show the ChangeLog diff
system 'diff -Nu ChangeLog ChangeLog.new';
rename 'ChangeLog.new', 'ChangeLog' or die "Can't rename ChangeLog.new: $!\n";
# Okay, now we have a starter ChangeLog to work with.
# The text will be added just like with any other ChangeLog below.
# Add the new ChangeLog to cvs before continuing.
if (open F, $vcs{$vcs}{entries} ) {
system("$vcs{$vcs}{add} ChangeLog") unless (scalar grep /\/?ChangeLog\/?/, <F>);
}
# vim:sw=4 ts=8 expandtab

7
scripts/redigest Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
EBUILD=`find ${PWD} -type f -name '*.ebuild'`
for J in $EBUILD ; do
ebuild $J digest
done

53
sys-fs/trustees/ChangeLog Normal file
View File

@ -0,0 +1,53 @@
# ChangeLog for sys-fs/trustees
# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
19 Feb 2007; Mario Fetka <mario-fetka@gmx.at> +trustees-3.0.ebuild:
Initial Ebuild
*trustees-3.0 (26 Aug 2005)
12 Sep 2005; Matt Stegman <matts@ksu.edu> trustees-3.0.ebuild:
Brand new ebuild for Trustees version 3.0, which works only on 2.6 kernels!
Includes initscript and corresponding conf.d file, and an additional
example trustees.conf in a gentoo-extras tarball.
01 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org> trustees-2.10.ebuild:
virtual/glibc -> virtual/libc
10 Mar 2004; Max Kalika <max@gentoo.org> trustees-2.10.ebuild:
Ditch sed dependency.
29 Oct 2003; Max Kalika <max@gentoo.org> trustees-2.10.ebuild:
Really fix link error. Move kernel check to pkg_setup(). Add echo of the
compile operation. Use CFLAGS during compile.
27 Oct 2003; Max Kalika <max@gentoo.org> trustees-2.10.ebuild:
Fix linking error.
*trustees-2.10 (13 Oct 2003)
13 Oct 2003; Max Kalika <max@gentoo.org> metadata.xml, trustees-2.10.ebuild,
files/trustees.conf, files/trustees.rc6:
Cleanup and mark stable.
03 Jul 2003; Max Kalika <max@gentoo.org> trustees-2.10.ebuild:
Set KEYWORDS to ~x86.
11 Jun 2003; Max Kalika <max@gentoo.org> trustees-2.10.ebuild,
files/trustees.rc6:
Start trustees before net.
23 May 2003; Max Kalika <max@gentoo.org> files/trustees.rc6:
Add check for /proc/trustee in startup script.
22 May 2003; Max Kalika <max@gentoo.org> trustees-2.10.ebuild,
files/trustees.conf, files/trustees.rc6:
Add startup script and corresponding config file. Remove post-install message
about loading permissions on boot.
*trustees-2.10 (08 May 2003)
08 May 2003; Max Kalika <max@gentoo.org> trustees-2.10.ebuild:
Initial version.

3
sys-fs/trustees/Manifest Normal file
View File

@ -0,0 +1,3 @@
MD5 1ad1e25dfcb23f328113d712d3adde59 ChangeLog 1732
MD5 1380097ad9f66c7900b91e2f111e60ff files/digest-trustees-3.0 134
MD5 dbd9bac66e4e73c926db7e16216ebf28 trustees-3.0.ebuild 1990

View File

@ -0,0 +1,2 @@
MD5 7fc546fffd129862b1a28a8e1e21b2f0 trustees-3.0-gentoo.tar.bz2 1445
MD5 45b7e894f9fe2321d671a5272dac76c2 trustees-3.0.tar.bz2 26958

View File

@ -0,0 +1,76 @@
# ebuild for Trustees 3.0 by M Stegman
# Distributed under the terms of the GNU General Public License v2
inherit linux-mod
MY_PP=${PN}-${PV}-gentoo
DESCRIPTION="Advanced permission management system for Linux"
HOMEPAGE="http://trustees.sourceforge.net/"
SRC_URI="http://umn.dl.sourceforge.net/sourceforge/trustees/${PN}-${PV}.tar.bz2
http://www.ephess.net/gentoo/${MY_PP}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE=""
RESTRICT="nomirror"
DEPEND="virtual/libc
virtual/linux-sources"
pkg_setup() {
# linux-mod inherits linux-info !
linux-mod_pkg_setup
# check prerequisites for Trustees 3.0:
# CONFIG_SECURITY is enabled
# kernel is 2.6.XXX
linux_chkconfig_builtin "SECURITY" || die "You must have CONFIG_SECURITY built in to use trustees!"
if ! kernel_is 2 6; then
einfo "Your kernel version is ${KV}!"
die "Trustees 3.0 is for kernel 2.6 only!"
fi
# I guess we're OK!
MODULE_NAMES="trustees(security:${S}/module)"
BUILD_TARGETS="clean all"
}
src_compile() {
linux-mod_src_compile
cd "${S}/src"
make
}
src_install() {
linux-mod_src_install
dodir /etc
dodir /trustees
GENTOO_DIR="${WORKDIR}/gentoo-extra"
newinitd ${GENTOO_DIR}/trustees-init.d trustees
newconfd ${GENTOO_DIR}/trustees-conf.d trustees
dodoc README
docinto examples
dodoc examples/*
dodoc ${GENTOO_DIR}/trustees3.conf
exeinto /sbin
doexe src/settrustees
}
pkg_postinst() {
linux-mod_pkg_postinst
einfo "You need to create /etc/trustees.conf. See examples in"
einfo "/usr/share/doc/${PF}/examples. After setting up your config"
einfo "file, simply use the initscript to start using trustees:"
einfo " /etc/init.d/trustees start"
einfo "After starting trustees, if you modify /etc/trustees.conf,"
einfo "you need to reload trustees for the changes to take effect:"
einfo " /etc/init.d/trustees reload"
}
pkg_prerm() {
/etc/init.d/trustees stop
# just in case something broke...
umount -a -t trusteesfs
rmmod trustees
}

View File

@ -1,7 +1,10 @@
# ChangeLog for www-client/prozilla
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
19 Feb 2007; Mario Fetka <mario-fetka@gmx.at> ChangeLog:
Moved ut of n4g
13 Aug 2006; Mario Fetka <mario-fetka@gmx.at> prozilla-2.0.4.ebuild,
+metadata.xml:
Correct Header

View File

@ -7,10 +7,10 @@ EBUILD prozilla-2.0.4.ebuild 752 RMD160 9d411e96799293102b1976773b7cb07f4cbcd75d
MD5 4238f3466cedc0cb3fc6710a2ed5045b prozilla-2.0.4.ebuild 752
RMD160 9d411e96799293102b1976773b7cb07f4cbcd75d prozilla-2.0.4.ebuild 752
SHA256 1322e74a8a6231f4ce55e108de00d89692932cf7c7e39bef3de706c405852b34 prozilla-2.0.4.ebuild 752
MISC ChangeLog 315 RMD160 bed069c8f90068cb41220d7d074bb8ebd48bd7aa SHA1 afedca4b668fda773e238e1e7fc99b3957457c31 SHA256 c887514f2bdd02931f7a8ca3aa3fccda7f45fbe03ce8a8ebcaa1e62da835e719
MD5 8b259364af9b3225d6bbba1ef6a44842 ChangeLog 315
RMD160 bed069c8f90068cb41220d7d074bb8ebd48bd7aa ChangeLog 315
SHA256 c887514f2bdd02931f7a8ca3aa3fccda7f45fbe03ce8a8ebcaa1e62da835e719 ChangeLog 315
MISC ChangeLog 393 RMD160 7ecb30668799f6c9fca3bc105450f1bfa1b6a53c SHA1 30c71886c151dd2e729ac471cdf503d72580a6d2 SHA256 f6a53991e89e6d014024350051b41ff2ff415855d723f80ccd40f4173a0f0155
MD5 6adec6fbff1f33f086405c2292c1fc1b ChangeLog 393
RMD160 7ecb30668799f6c9fca3bc105450f1bfa1b6a53c ChangeLog 393
SHA256 f6a53991e89e6d014024350051b41ff2ff415855d723f80ccd40f4173a0f0155 ChangeLog 393
MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
MD5 1e678929a9fec6632e227bdf2262e9a1 metadata.xml 170
RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 metadata.xml 170