Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgraded digikam ad unrar. Added ncrack. Rebuilt acpiclient, liboping…
… and squid
- Loading branch information
Showing
8 changed files
with
186 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
#!/bin/sh | ||
# | ||
# Slackware build script for ncrack | ||
# | ||
# Copyright 2014 Corrado Franco (http://conraid.net) | ||
# 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. | ||
# | ||
# Latest version of this SlackBuild at http://slackers.it/repository | ||
# | ||
# Exit on most errors | ||
set -e | ||
|
||
# Set variables: | ||
CWD=$(pwd) | ||
|
||
PRGNAME=${PRGNAME:-ncrack} | ||
PKGNAME=$(echo $PRGNAME | tr A-Z a-z) | ||
VERSION=${VERSION:-0.4ALPHA} | ||
PKGVERSION=$(echo $VERSION | tr - _) | ||
BUILD=${BUILD:-1} | ||
TAG=${TAG:-cf} | ||
TMP=${TMP:-/tmp/pkg} | ||
PKG=$TMP/package-$PKGNAME | ||
DOCS="$PKG/usr/doc/$PKGNAME-$PKGVERSION" | ||
|
||
# Insert document files in this variable | ||
DOCFILES="CHANGELOG COPYING*" | ||
|
||
ARCH=${ARCH:=""} # Set ARCH or leave blank to determine it automatically | ||
# Automatically determine the architecture we're building on: | ||
if [ -z "$ARCH" ]; then | ||
case "$( uname -m )" in | ||
i?86) ARCH=i686 ;; | ||
arm*) ARCH=arm ;; | ||
# Unless $ARCH is already set, use uname -m for all other archs: | ||
*) ARCH=$( uname -m ) ;; | ||
esac | ||
fi | ||
|
||
# Set compiling FLAGS | ||
case "$ARCH" in | ||
i[3-5]86) | ||
SLKCFLAGS="-O2 -march=${ARCH} -mtune=i686"; CHOST="i486" | ||
SLKLDFLAGS=""; LIBDIRSUFFIX="" | ||
;; | ||
i686) | ||
SLKCFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer"; CHOST="i486" | ||
SLKLDFLAGS=""; LIBDIRSUFFIX="" | ||
;; | ||
x86_64) | ||
SLKCFLAGS="-O2 -fPIC -pipe -fomit-frame-pointer"; CHOST="x86_64" | ||
SLKLDFLAGS="-L/lib64 -L/usr/lib64"; LIBDIRSUFFIX="64" | ||
;; | ||
*) | ||
SLKCFLAGS="-O2"; CHOST=$ARCH | ||
SLKLDFLAGS=""; LIBDIRSUFFIX="" | ||
;; | ||
esac | ||
|
||
# Extract source and prepare: | ||
rm -rf $PKG | ||
mkdir -p $TMP $PKG | ||
cd $TMP | ||
rm -rf $PRGNAME-$VERSION | ||
tar xvf $CWD/$PRGNAME-$VERSION.tar.gz | ||
cd $PRGNAME-$VERSION | ||
|
||
# Make sure ownerships and permissions are sane: | ||
chown -R root:root . | ||
chmod -R u+w,go+r-w,a-s . | ||
|
||
# Configure | ||
LDFLAGS="$SLKLDFLAGS" \ | ||
CFLAGS="$SLKCFLAGS" \ | ||
CXXFLAGS="$SLKCFLAGS" \ | ||
./configure \ | ||
--prefix=/usr \ | ||
--libdir=/usr/lib${LIBDIRSUFFIX} \ | ||
--sysconfdir=/etc \ | ||
--localstatedir=/var \ | ||
--mandir=/usr/man \ | ||
--infodir=/usr/info \ | ||
--docdir=/usr/doc/${PKGNAME}-${PKGVERSION} \ | ||
--enable-static=no \ | ||
--enable-shared=yes \ | ||
--host=$CHOST-slackware-linux \ | ||
--build=$CHOST-slackware-linux | ||
|
||
# Build and install: | ||
make | ||
make DESTDIR=$PKG install | ||
|
||
# Strip binaries: | ||
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF | cut -f 1 -d : | xargs -r strip --strip-unneeded 2> /dev/null || true | ||
find $PKG | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs -r strip -g 2> /dev/null || true | ||
|
||
# Compress and link manpages, if any: | ||
if [ -d $PKG/usr/man ]; then | ||
find $PKG/usr/man -type f -exec gzip -9 {} \; | ||
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done | ||
fi | ||
|
||
# Add a documentation directory: | ||
mkdir -p ${DOCS} | ||
cp -a $DOCFILES $DOCS | ||
|
||
# Add a slackbuild script: | ||
install -Dm644 $CWD/$PKGNAME.SlackBuild $DOCS/$PKGNAME.SlackBuild | ||
|
||
# Add slack-desc | ||
install -Dm644 $CWD/slack-desc $PKG/install/slack-desc | ||
|
||
# Create package: | ||
cd $PKG | ||
/sbin/makepkg -l y -c n $CWD/$PKGNAME-$PKGVERSION-$ARCH-${BUILD}${TAG}.txz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
NAME="ncrack" | ||
VERSION="ncrack-0.4ALPHA" | ||
HOMEPAGE="http://nmap.org/ncrack" | ||
DOWNLOAD="http://nmap.org/ncrack/dist/ncrack-0.4ALPHA.tar.gz" | ||
REQUIRES="" | ||
MD5SUM="" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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------------------------------------------------------| | ||
ncrack: ncrack (high-speed network authentication cracking tool) | ||
ncrack: | ||
ncrack: Ncrack is a high-speed network authentication cracking tool. i | ||
ncrack: Ncrack was designed using a modular approach, a command-line syntax | ||
ncrack: similar to Nmap and a dynamic engine that can adapt its behaviour | ||
ncrack: based on network feedback. It allows for rapid, yet reliable | ||
ncrack: large-scale auditing of multiple hosts. | ||
ncrack: | ||
ncrack: | ||
ncrack: | ||
ncrack: |