Ignore:
Timestamp:
02/01/2012 11:29:37 PM (12 years ago)
Author:
Thomas Pegg <thomasp@…>
Branches:
2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
2c9a16b
Parents:
f5dc6d7
Message:

Commit Pierre Labastie's patch for including package management support in jhalfs. NOTE: Package management is by default disabled.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/blfs-tool-deps/909-sudo

    rf5dc6d7 r7072e1f  
    66cd $PKGDIR
    77
    8 patch -Np1 -i ../sudo-1.6.8p12-envvar_fix-1.patch
    9 ./configure --prefix=/usr --libexecdir=/usr/lib \
    10     --enable-noargs-shell --with-ignore-dot --with-all-insults \
    11     --enable-shell-sets-home
     8./configure --prefix=/usr \
     9            --libexecdir=/usr/lib \
     10            --with-ignore-dot \
     11            --with-all-insults \
     12            --enable-shell-sets-home \
     13            --disable-root-sudo \
     14            --with-logfac=auth \
     15            --without-pam \
     16            --without-sendmail
    1217make
    13 make install
     18if ! [ -z $PKG_DEST ]; then
     19        mkdir -pv $PKG_DEST/{lib,usr/{share/{man,doc,info},lib}}
     20        ln -sv share/{man,doc,info} $PKG_DEST/usr
     21        case $(uname -m) in
     22         x86_64) ln -sv lib $PKG_DEST/lib64 && ln -sv lib $PKG_DEST/usr/lib64 ;;
     23        esac
     24fi
     25make DESTDIR=$PKG_DEST install
     26if ! [ -z $PKG_DEST ]; then
     27        rm -fv $PKG_DEST/{,usr/}lib64
     28        rm -fv $PKG_DEST/usr/{man,doc,info}
     29        for dir in $PKG_DEST/usr/share/{doc,info,man}; do
     30          [[ -z $(ls $dir) ]] && rmdir -v $dir
     31        done
     32        for dir in $PKG_DEST/usr/{lib,share}; do
     33          [[ -z $(ls $dir) ]] && rmdir -v $dir
     34        done
     35        for dir in $PKG_DEST/{lib,usr}; do
     36          [[ -z $(ls $dir) ]] && rmdir -v $dir
     37        done
     38        packInstall
     39fi
     40rm -rf $PKG_DEST
    1441
    1542exit
Note: See TracChangeset for help on using the changeset viewer.