mirror of
https://github.com/fspc/gbootroot.git
synced 2025-02-22 16:43:23 -05:00
Spiffing things up so that packing making is simplified.
This commit is contained in:
parent
fafd37f4a1
commit
b291702b57
@ -34,6 +34,7 @@ my $status = "/var/lib/dpkg/status";
|
|||||||
my $info = "/var/lib/dpkg/info";
|
my $info = "/var/lib/dpkg/info";
|
||||||
my (%alternatives, @alternatives); # for checking for alternatives
|
my (%alternatives, @alternatives); # for checking for alternatives
|
||||||
my %inetd; # checks for inetd binaries.
|
my %inetd; # checks for inetd binaries.
|
||||||
|
my $version = "1.0";
|
||||||
|
|
||||||
# You need file-rc, and you may add other extra stuff. These packages were
|
# You need file-rc, and you may add other extra stuff. These packages were
|
||||||
# chosen for woody, so you may need something different. If you add stuff,
|
# chosen for woody, so you may need something different. If you add stuff,
|
||||||
|
@ -8,7 +8,8 @@ use File::Find;
|
|||||||
# needs to be run as root. The advantage of this program is that the
|
# needs to be run as root. The advantage of this program is that the
|
||||||
# archive will always represent the Makefile which is being tested
|
# archive will always represent the Makefile which is being tested
|
||||||
# when development isn't being done with perl -I . ./gbootroot.
|
# when development isn't being done with perl -I . ./gbootroot.
|
||||||
# This program can be adapted for other packages.
|
# This program can be adapted for other packages, as long as $version is
|
||||||
|
# included in the program.
|
||||||
|
|
||||||
# This program uses dh-make, and copies your own defaults to
|
# This program uses dh-make, and copies your own defaults to
|
||||||
# $packaging_place/debian from your $packaging_defaults, and updates
|
# $packaging_place/debian from your $packaging_defaults, and updates
|
||||||
@ -22,18 +23,21 @@ use File::Find;
|
|||||||
# Makefile.pkg in $gbootroot_cvs in used as the packages Makefile.
|
# Makefile.pkg in $gbootroot_cvs in used as the packages Makefile.
|
||||||
|
|
||||||
my $user_home = "/home/mttrader";
|
my $user_home = "/home/mttrader";
|
||||||
my $prog = "gbootroot";
|
my $prog = "make-debian-X11";
|
||||||
|
my $prog_real_name = "make_debian-X11";
|
||||||
my $revision = 1;
|
my $revision = 1;
|
||||||
my $dist = "unstable";
|
my $dist = "unstable";
|
||||||
my $urgency = "low";
|
my $urgency = "low";
|
||||||
#my $arch = "all";
|
#my $arch = "all";
|
||||||
#my $group = "utils";
|
#my $group = "utils";
|
||||||
#my $priority = "optional";
|
#my $priority = "optional";
|
||||||
my $gbootroot_cvs = "$user_home/gbootroot/gbootroot";
|
my $gbootroot_cvs =
|
||||||
my $packaging_place = "$user_home/gbootroot/PACKAGING";
|
"$user_home/gbootroot/gbootroot/add-ons/yard/make-debian-X11";
|
||||||
my $packaging_defaults = "$gbootroot_cvs/pkg/dpkg";
|
my $packaging_place = "$user_home/gbootroot/PACKAGING-debian-X11";
|
||||||
|
my $packaging_defaults = "$gbootroot_cvs/add-ons/yard/make-debian-X11/pkg";
|
||||||
my $email = "freesource\@users.sourceforge.net";
|
my $email = "freesource\@users.sourceforge.net";
|
||||||
my $name = "Jonathan Rosenbaum";
|
my $name = "Jonathan Rosenbaum";
|
||||||
|
my $makefile = "Makefile";
|
||||||
|
|
||||||
# Other vars
|
# Other vars
|
||||||
my ($real_uid, $real_gid) = (stat($user_home))[4,5];
|
my ($real_uid, $real_gid) = (stat($user_home))[4,5];
|
||||||
@ -41,8 +45,8 @@ my ($real_uid, $real_gid) = (stat($user_home))[4,5];
|
|||||||
# Find the version
|
# Find the version
|
||||||
|
|
||||||
my $version;
|
my $version;
|
||||||
open(CVS, "$gbootroot_cvs/$prog") or
|
open(CVS, "$gbootroot_cvs/$prog_real_name") or
|
||||||
die "Couldn't find $prog in $gbootroot_cvs: $!\n";
|
die "Couldn't find $prog_real_name in $gbootroot_cvs: $!\n";
|
||||||
while (<CVS>) {
|
while (<CVS>) {
|
||||||
if (/\my \$version/) {
|
if (/\my \$version/) {
|
||||||
$version = (split(/=/,$_))[1];
|
$version = (split(/=/,$_))[1];
|
||||||
@ -103,7 +107,7 @@ foreach (@make_lines) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
system "cp -fa Makefile.pkg $packaging_place/Makefile";
|
system "cp -fa $makefile $packaging_place/Makefile";
|
||||||
|
|
||||||
# Now we get to clean out any CVS directories and make sure that the
|
# Now we get to clean out any CVS directories and make sure that the
|
||||||
# permissions are all for the user who will be creating the package.
|
# permissions are all for the user who will be creating the package.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user