Changeset 31


Ignore:
Timestamp:
01/19/06 16:10:49 (19 years ago)
Author:
kdeugau
Message:

/trunk

Tweaked parsing of filename-from-pathname in package build
Fixed %-macro substitution bug for /usr/sbin and added some others

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/debbuild

    r30 r31  
    642642    my @pkgfilelist = split ' ', $filelist{$pkg};
    643643    foreach my $pkgfile (@pkgfilelist) {
    644       my @filepath = ($pkgfile =~ /(.+)\/([a-zA-Z0-9_\.\+\-]+)$/);
     644      my @filepath = ($pkgfile =~ m|(.+)/([^/]+)$|);
    645645      qx { mkdir -p $buildroot/$pkg$filepath[0] }
    646646        if $filepath[0] ne '';
     
    839839    $macrostring =~ s'%{_docdir}'/usr/share/doc'g;
    840840
    841     # Standard FHS locations
     841    # Standard FHS locations.  More or less.
    842842    $macrostring =~ s'%{_bindir}'/usr/bin'g;
    843     $macrostring =~ s'%{_sbindir}'/usr/bin'g;
     843    $macrostring =~ s'%{_sbindir}'/usr/sbin'g;
    844844    $macrostring =~ s'%{_mandir}'/usr/share/man'g;
    845845    $macrostring =~ s'%{_includedir}'/usr/include'g;
     846    $macrostring =~ s'%{_libdir}'/usr/lib'g;
     847    $macrostring =~ s'%{_sysconfdir}'/etc'g;
     848    $macrostring =~ s'%{_localstatedir}'/var'g;
    846849
    847850    # %define's
Note: See TracChangeset for help on using the changeset viewer.