This commit is contained in:
commit
560b4bf648
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
46
copy-build.sh
Normal file
46
copy-build.sh
Normal file
@ -0,0 +1,46 @@
|
||||
#!/bin/bash
|
||||
|
||||
TOPDIR=inst-source-utils
|
||||
SUSEDIR=/
|
||||
BINDIR=${SUSEDIR}usr/bin
|
||||
MODULEDIR=/usr/share/inst-source-utils
|
||||
BUILD_ETC=${MODULEDIR}/etc
|
||||
|
||||
BINFILES="/work/cd/bin/tools/mk_listings /work/cd/bin/tools/create_directory.yast
|
||||
/work/cd/bin/tools/create_md5sums /work/cd/bin/tools/create_package_descr
|
||||
/work/cd/bin/tools/create_repo_for_patch.sh /work/cd/bin/createpatch
|
||||
/work/cd/bin/tools/create_update_source.sh /work/cd/bin/tools/create_sha1sums
|
||||
/work/cd/bin/tools/compress_susetags
|
||||
/work/cd/bin/tools/packages2eula.pl /work/cd/lib/mach_cd/mk_changelog"
|
||||
|
||||
mkdir -p $TOPDIR$BINDIR
|
||||
mkdir -p $TOPDIR$MODULEDIR/modules
|
||||
|
||||
#copy binaries
|
||||
for i in $BINFILES ; do
|
||||
sed -e "s|/work/abuild/lib/abuild|$MODULEDIR|g" -e "s|/work/abuild|$SUSEDIR|g" -e "s|/work/cd|$SUSEDIR|g" -e "s|/work/src/bin|$SUSEDIR|g" -e "s|/work/built/info|$SUSEDIR/data|g" -e "s|/mounts/you/ftp|/media/dvdrecorder|g" $i > $TOPDIR$BINDIR/`basename $i`
|
||||
chmod 755 $TOPDIR$BINDIR/`basename $i`
|
||||
done
|
||||
|
||||
# needed perl module
|
||||
for i in /mounts/work/abuild/lib/abuild/modules/RPMQ.pm ; do
|
||||
sed -e "s|/work/abuild|$BINDIR|g" $i > $TOPDIR$MODULEDIR/modules/`basename $i`
|
||||
done
|
||||
chmod 644 $TOPDIR$MODULEDIR/modules/*.pm
|
||||
|
||||
# extra sed for scripts using the perl modules
|
||||
for i in create_package_descr ; do
|
||||
sed -e "s|$BINDIR/lib/abuild|$MODULEDIR|g" $TOPDIR$BINDIR/$i > $TOPDIR$BINDIR/$i.tmp
|
||||
mv $TOPDIR$BINDIR/$i.tmp $TOPDIR$BINDIR/$i
|
||||
chmod 755 $TOPDIR$BINDIR/$i
|
||||
done
|
||||
|
||||
# don't package lines between <!--internal--> and <!--/internal-->
|
||||
for i in $TOPDIR$BINDIR/*; do
|
||||
`dirname $0`/split.pl $i $i.new
|
||||
mv $i.new $i
|
||||
chmod 755 $i
|
||||
done
|
||||
|
||||
tar cjfp inst-source-utils.tar.bz2 $TOPDIR
|
||||
test "$TOPDIR" != "/" -a -d "$TOPDIR" && rm -rf $TOPDIR
|
3
get_version_number.sh
Normal file
3
get_version_number.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
get_date_version_string `find_newest_file *.tar.bz2`
|
129
inst-source-utils.changes
Normal file
129
inst-source-utils.changes
Normal file
@ -0,0 +1,129 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 21 19:02:27 CEST 2008 - lrupp@suse.de
|
||||
|
||||
- create_directory_yast:
|
||||
+ add "-f" option to overwrite existing directory.yast files
|
||||
- create_md5sums:
|
||||
+ small code cleanups only
|
||||
- create_package_descr:
|
||||
+ added option -F (do file list: packages.FL)
|
||||
+ added option -B (add requires for src packages)
|
||||
+ fix warning message if -x is not specified (typo)
|
||||
+ EXTRA_REQUIRES_FILE option switched from -p to -r
|
||||
- create_repo_for_patch.sh:
|
||||
+ fix quoting
|
||||
- create_sha1sums:
|
||||
+ added option "-x" to add additional meta files in content file
|
||||
+ beetter check for repomd.xml
|
||||
+ added "-n" option to skip re-signing
|
||||
- mk_changelog:
|
||||
+ small code cleanup
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 16 16:52:36 CEST 2008 - ro@suse.de
|
||||
|
||||
- patches upstreamed
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 15 15:09:25 CEST 2008 - schwab@suse.de
|
||||
|
||||
- Fix syntax and quoting bugs.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 1 15:03:24 CET 2008 - lrupp@suse.de
|
||||
|
||||
- fix file permissions (fixes bnc#357313 and bnc#351070)
|
||||
- handle also boot/*/config boot/*/common (create_sha1sums)
|
||||
- fix path to REPOFILE (create_sha1sums)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 11 14:30:39 CET 2007 - lrupp@suse.de
|
||||
|
||||
- added mk_changelog (for add-on creator)
|
||||
- add fallback mode for createpatch (see #308684)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 26 20:38:37 CEST 2007 - ro@suse.de
|
||||
|
||||
- remove dependency to createrepo for now
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 26 12:20:24 CEST 2007 - lrupp@suse.de
|
||||
|
||||
- fixes for Bug #308684:
|
||||
+ require createrepo
|
||||
+ be more secure in bash
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 17 02:08:14 CEST 2007 - lrupp@suse.de
|
||||
|
||||
- createpatch: use CONFIRMATION_FILE as description to make clear,
|
||||
that this creates a confirmation popup for the user (#205534)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 13 11:21:25 CEST 2007 - lrupp@suse.de
|
||||
|
||||
- create_md5sums:
|
||||
+ fix typo in usage
|
||||
- create_package_descr:
|
||||
+ search data in main package for xxbit packages
|
||||
+ add license notes as confirmlic so YaST can display them
|
||||
even in plain text mode
|
||||
- create_sha1sums: added to generate the SHA1SUMs in content file
|
||||
- createpatch:
|
||||
+ support "license_to_confirm": add an EULA to the patch, read
|
||||
from the file specified (see #205534 for details)
|
||||
+ beautify usage message
|
||||
+ added @packagelist to condition
|
||||
- mk_listings:
|
||||
+ handle whitespaces in directory names
|
||||
+ use --rsyncable as gzip option: `rsync' program can take
|
||||
advantage of similarities during sync over network
|
||||
+ replace standard Names (CD,DVD,inst-source)
|
||||
+ use '--nodigest --nosignature' for rpm queries if supported
|
||||
+ re-create hardlinks from basedir to CD-dir if CD*/*.gz exists
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 15 15:55:26 CEST 2007 - ories@suse.de
|
||||
|
||||
- added support for adding supplements tag (#262859, #256038)
|
||||
- added support for overwriting the default freshens value
|
||||
- fixed one \" escaping typo
|
||||
- do not delete product.xml
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 15 18:20:28 CET 2007 - lrupp@suse.de
|
||||
|
||||
- patched copy-sources.sh
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 13 12:06:48 CET 2007 - lrupp@suse.de
|
||||
|
||||
- fixed source again - fixed script, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 9 10:39:06 CET 2007 - lrupp@suse.de
|
||||
|
||||
- fixed source tarball
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 5 15:24:17 CET 2007 - lrupp@suse.de
|
||||
|
||||
- add package to SLE10-SP1 tree (#250860)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 26 14:17:43 CET 2007 - lrupp@suse.de
|
||||
|
||||
- fixed #214273 : inst-source-utils perl module in subdir of
|
||||
/usr/bin is questionable/ugly
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 19 20:07:28 CEST 2006 - lrupp@suse.de
|
||||
|
||||
- Obsolete only autoyast-utils <= 2.14.6
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 13 18:02:18 CEST 2006 - lrupp@suse.de
|
||||
|
||||
- Initial version
|
||||
|
136
inst-source-utils.spec
Normal file
136
inst-source-utils.spec
Normal file
@ -0,0 +1,136 @@
|
||||
#
|
||||
# spec file for package inst-source-utils (Version 2008.7.21)
|
||||
#
|
||||
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# This file and all modifications and additions to the pristine
|
||||
# package are under the same license as the package itself.
|
||||
#
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
|
||||
Name: inst-source-utils
|
||||
Url: http://en.opensuse.org/Inst-source-utils
|
||||
License: GPL v2 or later
|
||||
Group: System/YaST
|
||||
AutoReqProv: on
|
||||
Obsoletes: autoyast2-utils <= 2.14.10
|
||||
Provides: autoyast2-utils = 2.14.10
|
||||
Summary: Utilities for creating customized installation sources
|
||||
Version: 2008.7.21
|
||||
Release: 1
|
||||
Source: inst-source-utils.tar.bz2
|
||||
Source1: copy-build.sh
|
||||
Source2: split.pl
|
||||
NoSource: 1
|
||||
NoSource: 2
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
Utilities supporting autoinstallation and creation of customized
|
||||
installation and update sources.
|
||||
|
||||
Have a look at http://en.opensuse.org/Inst-source-utils for a detailed
|
||||
description of each script.
|
||||
|
||||
|
||||
|
||||
%prep
|
||||
%setup -n %{name} -q
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
install -d -m 755 %{buildroot}/%{_prefix}
|
||||
cp -a * %{buildroot}
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(755,root,root,755)
|
||||
%_bindir/*
|
||||
%defattr(644,root,root,755)
|
||||
%_datadir/%name
|
||||
|
||||
%changelog
|
||||
* Mon Jul 21 2008 lrupp@suse.de
|
||||
- create_directory_yast:
|
||||
+ add "-f" option to overwrite existing directory.yast files
|
||||
- create_md5sums:
|
||||
+ small code cleanups only
|
||||
- create_package_descr:
|
||||
+ added option -F (do file list: packages.FL)
|
||||
+ added option -B (add requires for src packages)
|
||||
+ fix warning message if -x is not specified (typo)
|
||||
+ EXTRA_REQUIRES_FILE option switched from -p to -r
|
||||
- create_repo_for_patch.sh:
|
||||
+ fix quoting
|
||||
- create_sha1sums:
|
||||
+ added option "-x" to add additional meta files in content file
|
||||
+ beetter check for repomd.xml
|
||||
+ added "-n" option to skip re-signing
|
||||
- mk_changelog:
|
||||
+ small code cleanup
|
||||
* Fri May 16 2008 ro@suse.de
|
||||
- patches upstreamed
|
||||
* Thu May 15 2008 schwab@suse.de
|
||||
- Fix syntax and quoting bugs.
|
||||
* Fri Feb 01 2008 lrupp@suse.de
|
||||
- fix file permissions (fixes bnc#357313 and bnc#351070)
|
||||
- handle also boot/*/config boot/*/common (create_sha1sums)
|
||||
- fix path to REPOFILE (create_sha1sums)
|
||||
* Tue Dec 11 2007 lrupp@suse.de
|
||||
- added mk_changelog (for add-on creator)
|
||||
- add fallback mode for createpatch (see #308684)
|
||||
* Wed Sep 26 2007 ro@suse.de
|
||||
- remove dependency to createrepo for now
|
||||
* Wed Sep 26 2007 lrupp@suse.de
|
||||
- fixes for Bug #308684:
|
||||
+ require createrepo
|
||||
+ be more secure in bash
|
||||
* Tue Jul 17 2007 lrupp@suse.de
|
||||
- createpatch: use CONFIRMATION_FILE as description to make clear,
|
||||
that this creates a confirmation popup for the user (#205534)
|
||||
* Fri Jul 13 2007 lrupp@suse.de
|
||||
- create_md5sums:
|
||||
+ fix typo in usage
|
||||
- create_package_descr:
|
||||
+ search data in main package for xxbit packages
|
||||
+ add license notes as confirmlic so YaST can display them
|
||||
even in plain text mode
|
||||
- create_sha1sums: added to generate the SHA1SUMs in content file
|
||||
- createpatch:
|
||||
+ support "license_to_confirm": add an EULA to the patch, read
|
||||
from the file specified (see #205534 for details)
|
||||
+ beautify usage message
|
||||
+ added @packagelist to condition
|
||||
- mk_listings:
|
||||
+ handle whitespaces in directory names
|
||||
+ use --rsyncable as gzip option: `rsync' program can take
|
||||
advantage of similarities during sync over network
|
||||
+ replace standard Names (CD,DVD,inst-source)
|
||||
+ use '--nodigest --nosignature' for rpm queries if supported
|
||||
+ re-create hardlinks from basedir to CD-dir if CD*/*.gz exists
|
||||
* Tue May 15 2007 ories@suse.de
|
||||
- added support for adding supplements tag (#262859, #256038)
|
||||
- added support for overwriting the default freshens value
|
||||
- fixed one \" escaping typo
|
||||
- do not delete product.xml
|
||||
* Thu Mar 15 2007 lrupp@suse.de
|
||||
- patched copy-sources.sh
|
||||
* Tue Mar 13 2007 lrupp@suse.de
|
||||
- fixed source again - fixed script, too
|
||||
* Fri Mar 09 2007 lrupp@suse.de
|
||||
- fixed source tarball
|
||||
* Mon Mar 05 2007 lrupp@suse.de
|
||||
- add package to SLE10-SP1 tree (#250860)
|
||||
* Mon Feb 26 2007 lrupp@suse.de
|
||||
- fixed #214273 : inst-source-utils perl module in subdir of
|
||||
/usr/bin is questionable/ugly
|
||||
* Thu Oct 19 2006 lrupp@suse.de
|
||||
- Obsolete only autoyast-utils <= 2.14.6
|
||||
* Fri Oct 13 2006 lrupp@suse.de
|
||||
- Initial version
|
3
inst-source-utils.tar.bz2
Normal file
3
inst-source-utils.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:637cac9e1b77b27810f050278b0799048a33df0c97e496634851acbb704cf679
|
||||
size 24831
|
106
split.pl
Normal file
106
split.pl
Normal file
@ -0,0 +1,106 @@
|
||||
#!/usr/bin/perl -w
|
||||
#
|
||||
use strict;
|
||||
|
||||
my $file="";
|
||||
my $newfile="";
|
||||
my $newdata="";
|
||||
my $starttag="# <!--internal-->";
|
||||
my $endtag="# <!--/internal-->";
|
||||
my $loglevel=0;
|
||||
|
||||
sub usage {
|
||||
print <<EOF
|
||||
Usage: $0 [-s <start-tag>] [-e <end-tag>] <filename> <newfile>
|
||||
|
||||
splits out textblocks marked with start and endtag.
|
||||
Default:
|
||||
$starttag
|
||||
$endtag
|
||||
|
||||
-s <starttag> : define new start-tag
|
||||
-e <endtag> : define new end-tag
|
||||
|
||||
EOF
|
||||
;
|
||||
exit 1;
|
||||
}
|
||||
|
||||
sub LOG {
|
||||
my $message = shift;
|
||||
my $level = shift || 0;
|
||||
# my $time = localtime(time);
|
||||
if ( $level <= $loglevel ) {
|
||||
# print LOGFILE "[$time] [$$] $message\n";
|
||||
print "$message\n";
|
||||
}
|
||||
}
|
||||
|
||||
sub splitInternal {
|
||||
my $file=shift;
|
||||
my $data;
|
||||
open (FILE,"$file") || die ("Can not open $file: $! $?!\n");
|
||||
while (<FILE>) {
|
||||
chomp;
|
||||
if ( $_ =~ /^$starttag/){
|
||||
while (<FILE>) {
|
||||
chomp;
|
||||
last if $_ eq "$endtag";
|
||||
}
|
||||
} else {
|
||||
$data .= "$_\n";
|
||||
}
|
||||
}
|
||||
return $data;
|
||||
}
|
||||
|
||||
while (my $param = shift (@ARGV)) {
|
||||
if (( $param eq "-h" ) || ( $param eq "--help" )){
|
||||
usage();
|
||||
}
|
||||
|
||||
if (($param eq "-s" ) || ($param eq "--start-tag")){
|
||||
$starttag=shift(@ARGV);
|
||||
next;
|
||||
}
|
||||
|
||||
if (($param eq "-e" ) || ($param eq "--end-tag")){
|
||||
$endtag=shift(@ARGV);
|
||||
next;
|
||||
}
|
||||
|
||||
if (($param eq "-v" ) || ($param eq "--verbose")){
|
||||
$loglevel=2;
|
||||
next;
|
||||
}
|
||||
|
||||
if ($file eq ""){
|
||||
$file=$param;
|
||||
next;
|
||||
}
|
||||
|
||||
$newfile=$param;
|
||||
}
|
||||
|
||||
if ($newfile eq ""){
|
||||
die("newfile not defined!\n");
|
||||
usage();
|
||||
}
|
||||
|
||||
if ($file eq ""){
|
||||
die("filename not defined!\n");
|
||||
usage();
|
||||
}
|
||||
|
||||
if (-f $file) {
|
||||
$newdata=splitInternal($file);
|
||||
LOG ("File $newfile exists - overwriting!\n",1) if (-f $newfile);
|
||||
open(NEWFILE, "> $newfile");
|
||||
print NEWFILE $newdata;
|
||||
close(NEWFILE);
|
||||
LOG("New file $newfile written",2);
|
||||
} else {
|
||||
print "File $file not found.\n";
|
||||
usage();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user