Skip to content

Instantly share code, notes, and snippets.

Created January 6, 2018 00:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/66e50b513491fb69cb43ac44dccc92c4 to your computer and use it in GitHub Desktop.
Save anonymous/66e50b513491fb69cb43ac44dccc92c4 to your computer and use it in GitHub Desktop.
~ » wget -nv https://slackbuilds.org/slackbuilds/14.2/system/foremost.tar.gz
2018-01-05 22:12:56 URL:https://slackbuilds.org/slackbuilds/14.2/system/foremost.tar.gz [2369/2369] -> "foremost.tar.gz" [1]
~ » tar xf foremost.tar.gz
~ » cd foremost
~/foremost » chmod +x foremost.SlackBuild
~/foremost » source foremost.info
~/foremost » wget -nv $DOWNLOAD
2018-01-05 22:13:44 URL:http://foremost.sourceforge.net/pkg/foremost-1.5.7.tar.gz [52352/52352] -> "foremost-1.5.7.tar.gz" [1]
~/foremost » sudo sh foremost.SlackBuild
foremost-1.5.7/
foremost-1.5.7/engine.c
foremost-1.5.7/main.h
foremost-1.5.7/main.c
foremost-1.5.7/helpers.c
foremost-1.5.7/config.c
foremost-1.5.7/README
foremost-1.5.7/foremost.conf
foremost-1.5.7/foremost.8.gz
foremost-1.5.7/extract.c
foremost-1.5.7/ole.h
foremost-1.5.7/CHANGES
foremost-1.5.7/cli.c
foremost-1.5.7/dir.c
foremost-1.5.7/extract.h
foremost-1.5.7/api.c
foremost-1.5.7/state.c
foremost-1.5.7/Makefile
patching file extract.c
Hunk #1 succeeded at 1868 (offset 74 lines).
gcc -Wall -O2 -fPIC -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c main.c
gcc -Wall -O2 -fPIC -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c state.c
gcc -Wall -O2 -fPIC -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c helpers.c
gcc -Wall -O2 -fPIC -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c config.c
config.c: In function ‘translate’:
config.c:27:6: warning: value computed is not used [-Wunused-value]
*rd++;
^
config.c:32:6: warning: value computed is not used [-Wunused-value]
*rd++;
^
config.c:37:6: warning: value computed is not used [-Wunused-value]
*rd++;
^
config.c:42:6: warning: value computed is not used [-Wunused-value]
*rd++;
^
config.c:47:6: warning: value computed is not used [-Wunused-value]
*rd++;
^
config.c:52:6: warning: value computed is not used [-Wunused-value]
*rd++;
^
config.c:57:6: warning: value computed is not used [-Wunused-value]
*rd++;
^
gcc -Wall -O2 -fPIC -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c cli.c
gcc -Wall -O2 -fPIC -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c engine.c
engine.c: In function ‘search_chunk’:
engine.c:319:17: warning: variable ‘current_pos’ set but not used [-Wunused-but-set-variable]
unsigned char *current_pos = NULL;
^
gcc -Wall -O2 -fPIC -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c dir.c
gcc -Wall -O2 -fPIC -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c extract.c
extract.c: In function ‘extract_htm’:
extract.c:556:17: warning: variable ‘currentpos’ set but not used [-Wunused-but-set-variable]
unsigned char *currentpos = NULL;
^
extract.c: In function ‘extract_wmv’:
extract.c:1157:21: warning: variable ‘fileObjHeaderSize’ set but not used [-Wunused-but-set-variable]
u_int64_t fileObjHeaderSize = 0;
^
extract.c:1150:17: warning: variable ‘currentpos’ set but not used [-Wunused-but-set-variable]
unsigned char *currentpos = NULL;
^
extract.c: In function ‘extract_gif’:
extract.c:1404:17: warning: variable ‘currentpos’ set but not used [-Wunused-but-set-variable]
unsigned char *currentpos = foundat;
^
extract.c: In function ‘extract_jpeg’:
extract.c:1824:17: warning: variable ‘currentpos’ set but not used [-Wunused-but-set-variable]
unsigned char *currentpos = NULL;
^
extract.c: In function ‘extract_exe’:
extract.c:2114:15: warning: variable ‘align’ set but not used [-Wunused-but-set-variable]
unsigned int align = 0;
^
extract.c:2110:15: warning: variable ‘size_of_headers’ set but not used [-Wunused-but-set-variable]
unsigned int size_of_headers = 0;
^
extract.c:2108:15: warning: variable ‘sizeofimage’ set but not used [-Wunused-but-set-variable]
unsigned int sizeofimage = 0;
^
extract.c:2105:15: warning: variable ‘rva’ set but not used [-Wunused-but-set-variable]
unsigned int rva = 0;
^
extract.c:2104:15: warning: variable ‘SizeOfUninitializedData’ set but not used [-Wunused-but-set-variable]
unsigned int SizeOfUninitializedData = 0;
^
extract.c:2103:15: warning: variable ‘SizeOfInitializedData’ set but not used [-Wunused-but-set-variable]
unsigned int SizeOfInitializedData = 0;
^
extract.c:2102:15: warning: variable ‘SizeOfCode’ set but not used [-Wunused-but-set-variable]
unsigned int SizeOfCode = 0;
^
extract.c: In function ‘extract_rar’:
extract.c:2277:21: warning: variable ‘file_size’ set but not used [-Wunused-but-set-variable]
u_int64_t file_size = 0;
^
gcc -Wall -O2 -fPIC -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c api.c
api.c: In function ‘dump_dirent’:
api.c:481:8: warning: variable ‘unknown’ set but not used [-Wunused-but-set-variable]
short unknown;
^
gcc -Wall -O2 -fPIC -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 main.o state.o helpers.o config.o cli.o engine.o dir.o extract.o api.o -o foremost
install -m 755 foremost /tmp/SBo/package-foremost/usr/bin
install -m 444 foremost.8.gz /tmp/SBo/package-foremost/usr/man/man8
install -m 444 foremost.conf /tmp/SBo/package-foremost/etc
Slackware package maker, version 3.141593.
Searching for symbolic links:
No symbolic links were found, so we won't make an installation script.
You can make your own later in ./install/doinst.sh and rebuild the
package if you like.
This next step is optional - you can set the directories in your package
to some sane permissions. If any of the directories in your package have
special permissions, then DO NOT reset them here!
Would you like to reset all directory permissions to 755 (drwxr-xr-x) and
directory ownerships to root.root ([y]es, [n]o)? n
Creating Slackware package: /tmp/foremost-1.5.7-x86_64-1_SBo.tgz
./
install/
install/doinst.sh
install/slack-desc
usr/
usr/doc/
usr/doc/foremost-1.5.7/
usr/doc/foremost-1.5.7/foremost.SlackBuild
usr/doc/foremost-1.5.7/README
usr/doc/foremost-1.5.7/CHANGES
usr/bin/
usr/bin/foremost
usr/man/
usr/man/man8/
usr/man/man8/foremost.8.gz
etc/
etc/foremost.conf.new
Slackware package /tmp/foremost-1.5.7-x86_64-1_SBo.tgz created.
~/foremost » sudo installpkg /tmp/foremost-1.5.7-x86_64-1_SBo.tgz
Verifying package foremost-1.5.7-x86_64-1_SBo.tgz.
Installing package foremost-1.5.7-x86_64-1_SBo.tgz:
PACKAGE DESCRIPTION:
# foremost (recover files based on their headers and footers)
#
# Foremost is a Linux program to recover files based on their headers
# and footers. Foremost can work on image files, such as those
# generated by dd, Safeback, Encase, etc, or directly on a drive. The
# headers and footers are specified by a configuration file, so you can
# pick and choose which headers you want to look for.
#
# Homepage: http://foremost.sourceforge.net/
#
Executing install script for foremost-1.5.7-x86_64-1_SBo.tgz.
Package foremost-1.5.7-x86_64-1_SBo.tgz installed.
~/foremost »
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment