diff options
author | Barry J. Grundy <bgrundy@linuxleo.com> | 2017-01-22 08:32:35 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-01-24 07:22:55 +0700 |
commit | 22d7f38cd26bba6ec2741c5110bab12de38471e2 (patch) | |
tree | 9910c06315facbcbd7ee4fadc469313e2f071536 | |
parent | e12d3250a7c9aebc14dfae5e57d42bad93a49ae8 (diff) | |
download | slackbuilds-22d7f38cd26bba6ec2741c5110bab12de38471e2.tar.gz |
python/dfwinreg: Added (Digital Forensics Windows Registry).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | python/dfwinreg/README | 4 | ||||
-rw-r--r-- | python/dfwinreg/dfwinreg.SlackBuild | 86 | ||||
-rw-r--r-- | python/dfwinreg/dfwinreg.info | 10 | ||||
-rw-r--r-- | python/dfwinreg/slack-desc | 19 |
4 files changed, 119 insertions, 0 deletions
diff --git a/python/dfwinreg/README b/python/dfwinreg/README new file mode 100644 index 0000000000..d52d683670 --- /dev/null +++ b/python/dfwinreg/README @@ -0,0 +1,4 @@ +dfWinReg, or Digital Forensics Windows Registry, provides read-only access to +Windows Registry objects. The goal of dfWinReg is to provide a generic +interface for accessing Windows Registry objects that resembles the Registry +key hierarchy as seen on a live Windows system. diff --git a/python/dfwinreg/dfwinreg.SlackBuild b/python/dfwinreg/dfwinreg.SlackBuild new file mode 100644 index 0000000000..16fdc32e37 --- /dev/null +++ b/python/dfwinreg/dfwinreg.SlackBuild @@ -0,0 +1,86 @@ +#!/bin/sh + +# Slackware build script for dfwinreg +# Copyright 2017 Barry Grundy <bgrundy[at]linuxleo.com> +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# New Submission for version 20160428, January 2017, Barry J. Grundy + +PRGNAM=dfwinreg +VERSION=${VERSION:-20160428} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +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 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +python setup.py install --root=$PKG + +find $PKG | xargs 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 +cp -a ACKNOWLEDGEMENTS AUTHORS LICENSE README $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/python/dfwinreg/dfwinreg.info b/python/dfwinreg/dfwinreg.info new file mode 100644 index 0000000000..26cfb87b2a --- /dev/null +++ b/python/dfwinreg/dfwinreg.info @@ -0,0 +1,10 @@ +PRGNAM="dfwinreg" +VERSION="20160428" +HOMEPAGE="https://github.com/log2timeline/dfwinreg" +DOWNLOAD="https://github.com/log2timeline/dfwinreg/releases/download/20160428/dfwinreg-20160428.tar.gz" +MD5SUM="57a8c1d72a3a1cb50f2b114f92f838f4" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="construct dfdatetime libregf" +MAINTAINER="Barry J. Grundy" +EMAIL="bgrundy<at>linuxleo.com" diff --git a/python/dfwinreg/slack-desc b/python/dfwinreg/slack-desc new file mode 100644 index 0000000000..1c494aa728 --- /dev/null +++ b/python/dfwinreg/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +dfwinreg: dfwinreg (Digital Forensics Windows Registry) +dfwinreg: +dfwinreg: dfwinreg, or Digital Forensics Windows Registry, provides read-only +dfwinreg: access to Windows Registry objects. +dfwinreg: +dfwinreg: +dfwinreg: Homepage: https://github.com/log2timeline/dfwinreg +dfwinreg: +dfwinreg: +dfwinreg: +dfwinreg: |