aboutsummaryrefslogtreecommitdiff
path: root/misc/chntpw/chntpw.SlackBuild
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2021-04-04 19:30:02 +0200
committerRobby Workman <rworkman@slackbuilds.org>2021-04-17 23:15:55 -0500
commit11004b0d104050b7072ed004bccd0020057d6584 (patch)
tree8fbf3b322d7afb36b9002953afb2beb211f1e4d1 /misc/chntpw/chntpw.SlackBuild
parent6372209e5d9dc8c22e5c30e364a4d2037907ed60 (diff)
misc/chntpw: Updated for version 140201.
Use libgcrypt instead of openssl, don't build static binaries Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'misc/chntpw/chntpw.SlackBuild')
-rw-r--r--misc/chntpw/chntpw.SlackBuild30
1 files changed, 13 insertions, 17 deletions
diff --git a/misc/chntpw/chntpw.SlackBuild b/misc/chntpw/chntpw.SlackBuild
index 796ac11cdeaec..1c7d8a9a9a335 100644
--- a/misc/chntpw/chntpw.SlackBuild
+++ b/misc/chntpw/chntpw.SlackBuild
@@ -25,13 +25,13 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=chntpw
-VERSION=${VERSION:-110511}
+VERSION=${VERSION:-140201}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -42,8 +42,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -66,27 +66,23 @@ unzip $CWD/$PRGNAM-source-$VERSION.zip
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-# Disable forcing 32 bit
-zcat $CWD/defaultarch.patch.gz | patch -p0 --verbose || exit 1
+for i in $CWD/patches/* ; do patch -p1 < $i ; done
-make \
- OSSLPATH=/usr \
- OSSLLIB=/usr/lib${LIBDIRSUFFIX}
+make EXTRA_CFLAGS="$SLKCFLAGS"
# No automatic install available, manual installation (easy)
mkdir -p $PKG/usr/bin
-for i in chntpw chntpw.static cpnt reged reged.static
+for i in chntpw cpnt reged
do
- echo cp $i $PKG/usr/bin/.
- cp $i $PKG/usr/bin/.
+ install -m 0755 $i $PKG/usr/bin/$i
done
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION