Hi Guys,
Sorry for the delay as I was away for a few days without internet.
Here you go ...
1. Open
/usr/bin/usm and edit/insert below lines:-
[ ! `egrep -o "slackware|slackwarepatches|slacky|salix|alien|ponce|slackonly|sbo|usm|all" <<<"$1"` ] && \
...
[ "$1" == "slackonly" ] && { update_database slackonly; cleanup; }
...
<menuitem icon="gtk-edit"><label>'$(gettext "Edit slackonly mirror")'</label>
<action>gtk_editFile '$CONFDIR/mirrors-slackonly.txt' &</action>
</menuitem>
...
'"`for a in slackware slacky salix alien ponce slackonly; do echo '
...
My
/usr/bin/usm:-
http://pastebin.com/0MJLVM0Y
2. Add slackonly repo link into
/etc/usm/mirrors-slackonly.txt using
/etc/usm/mirrors-ponce.txt as sample.
My
/etc/usm/mirrors-slackonly.txt
Code: Select all
# List of Slackonly Slackware mirrors
# Structure: $VER/$ARCH
# OFFICIAL
http://slackonly.com/pub
3. Add these lines into
/etc/usm/files.conf using ponce as sample.
distro:slackonly
files:CHECKSUMS.md5.gz MANIFEST.bz2 PACKAGES.TXT.gz
extras:LIBS.TXT.gz
excludes:
My
/etc/usm/mirrors-slackonly.txt
Code: Select all
# This config file is awk'd in the function update database() in order
# to download database files or remove unwanted files from PACKAGES.TXT.
# The excludes line is for removing packages from PACKAGES.TXT so they are
# not available in USM at all.
distro:alien
files:CHECKSUMS.md5.gz MANIFEST.bz2 PACKAGES.TXT.gz
extras:LIBS.TXT.gz
excludes:libreoffice-dict libreoffice-l10n
distro:salix
files:CHECKSUMS.md5 PACKAGES.TXT
extras:LIBS.TXT.gz OPTIFEST.gz
excludes:f locale mate
distro:slackware
files:CHECKSUMS.md5 MANIFEST.bz2 PACKAGES.TXT
extras:LIBS.TXT.gz
excludes:e f k$ kdei$ y
distro:slackwarepatches
files:CHECKSUMS.md5 MANIFEST.bz2 PACKAGES.TXT
extras:LIBS.TXT.gz
excludes:
distro:slacky
files:CHECKSUMS.md5.gz MANIFEST.bz2 PACKAGES.TXT.gz
extras:LIBS.TXT.gz
excludes:
distro:ponce
files:CHECKSUMS.md5.gz MANIFEST.bz2 PACKAGES.TXT.gz
extras:LIBS.TXT.gz
excludes:
distro:slackonly
files:CHECKSUMS.md5.gz MANIFEST.bz2 PACKAGES.TXT.gz
extras:LIBS.TXT.gz
excludes:
distro:sbo
files:SLACKBUILDS.TXT.gz
extras:
excludes:
4. Edit
DISTROS line in
/etc/usm/usm.conf
DISTROS="slackware slackwarepatches slacky salix alien ponce slackonly"
My
/etc/usm/usm.conf for reference:-
Code: Select all
# usm.conf - Configuration for Unified Slackware Manager (usm)
#
# Resolve dependencies for all packages
# Set this to true or false (never uncomment this)
RESOLVE=true
# The automatice update check that is made when internet
# is accessed. This update check doubles as a check that
# you have internet access before downloading packages.
# Set to false to disable update check.
AUTOCHECK=true
# When downloading multiple packages you are given the option to create
# a subfolder for the package and its dependencies. This option means if
# a package already exists in storage then instead of downloading it
# again to another subfolder, it will just be symbolically linked to
# the existing package in order to save time and space.
MAKELINKS=false
# Storage of database files (e.g PACKAGES.TXT)
DBDIR=/var/usm
# usm works with the repositories of various slackware based distros.
# The variable below is used to find the mirror for each distro given.
# The mirror files are stored in ${DBDIR}/mirrors-distro.txt
DISTROS="slackware slackwarepatches slacky salix alien ponce slackonly"
# Where packages will be downloaded to.
STORAGE=/tmp/usm
# This setting is the time (in seconds) before which the database
# file will be skipped if it has already been updated. The default
# time limit is 3 hours (10800 seconds)
SKIPDB=10800
# Time before system dependency cache is deleted.
# This is found in function system_deps()
declare -i HOURS=4
# The directory where your slackbuilds source files
# will be downloaded when building from source
SBOTMP=/tmp/usmsbo
# USM uses wget to fetch packages and database updates.
# Uncomment this and put your proxy address here.
#PROXY=http://180.241.124.57:8080
# If your proxy has a username, uncomment it and place it here.
# This setting requires the above #PROXY to be uncommented.
#PROXYUSER=username
# Proxy password
# This setting requires the above #PROXY to be uncommented.
# This setting requires the above #PROXYUSER to be uncommented.
#PROXYPASS=mypassword
# The initial size of the bottom text box window in the GUI
TXTBOX=210
# Do not show any prompts.
# For the GUI this means the last prompt that asks if you want to
# open the folder for viewing will not be shown.
# For the CLI this means just download the packages to storage without
# asking about creating subfolders, etc.
# false means you WILL receive prompts.
NOPROMPTS=false
############ CLI PROMPTS
# CLI option that automatically prompts to
# create a subfolder with name of chosen module
# all dependencies will be downloaded to this subfolder
# This is called from funcpackagesGet
# This variable should be true if you want to be prompted
SUBFOLDERPROMPT=true
############ PORTEUS ONLY SETTINGS
# Convert all slackware packages that are downloaded
# to porteus modules.
MODULES=true
# Merge downloaded packages into one module bundle
MERGE=false
################################
# DO NOT EDIT BELOW THIS POINT
# OR A PUPPY DOG COULD DIE!
################################
# Uncomment and set this value to overide automated detection
# Used for development and troubleshooting only
# ARCH=x86_64
# Uncomment and set this value to overide automated detection
# Used for development and troubleshooting only
#SLACKVER=14.1
VALIDVERS="14.1 slackware-current"
SUPPLIMENTOPTI=/etc/usm/suppliment-optifest.txt
SUPPLIMENTLIBS=/etc/usm/suppliment-libs.txt
CACHEPATH=/var/cache/usm
CACHE=${CACHEPATH}/usm-cache
CHECKED=$CACHEPATH/checked
UPDLINK=http://downloads.sourceforge.net/project/usm
DISFILES=$CONFDIR/files.conf
WGETFLAGS="--passive-ftp --trust-server-names --no-check-certificate --progress=dot"
CURLFLAGS=""
PREFIX=/usr
5. Run command
usm -u slackonly to download repo info files.
6. Add this line in
/usr/share/usm/funcchangelogs after ponce
[ "$1" = "slackonly" ] && CHLINK="$REPO_SLACKONLY/packages/$SLACKVER-$ARCH/$CL"
My
/usr/share/usm/funcchangelogs
http://pastebin.com/9kr3v1Hn
7. Add slackonly in
/usr/share/usm/funcpackageGet
[ "$DIST" = "slackonly" ] && local EXTRA=packages/$SLACKVER-$ARCH
[ "$DIST" = "slackonly" ] && local EXTRA=packages/$SLACKVER-$ARCH
My
/usr/share/usm/funcpackageGet
http://pastebin.com/yDUAschs
8. Add and edit lines in
/usr/share/usm/funcupdateDatabase
for a in alien salix slacky ponce slackonly slackware slackwarepatches sbo; do
...
slackonly )
for a in $FILES; do
if [ $CLI ]; then
download $REPO_SLACKONLY/packages/$SLACKVER-$ARCH/$a $SDIR
else
echo "$a" > $TMPDIR/.message
wget $WFLAGS -o $TMPDIR/.progress $REPO_SLACKONLY/packages/$SLACKVER-$ARCH/$a -P $SDIR
sleep 0.4
fi
done
...
# create Slackonly deps LIBS.TXT
grep -w 'PACKAGE NAME\|PACKAGE REQUIRED\|^$' /var/usm/slackonly/PACKAGES.TXT > LIBS.TXT
sed -i 's/PACKAGE NAME\:\ \ //g' LIBS.TXT
sed -i 's/PACKAGE REQUIRED\:\ \ //g' LIBS.TXT
sed -i 's/,/\ \ \ \ \ /g' LIBS.TXT
mv LIBS.TXT /var/usm/slackonly/.
# patch Slackonly PACKAGES.TXT
cp -a /var/usm/slackonly/PACKAGES.TXT /var/usm/slackonly/PACKAGES.TXT.ori
sed -i '/PACKAGE MIRROR\:/d' /var/usm/slackonly/PACKAGES.TXT
My
/usr/share/usm/funcupdateDatabase
http://pastebin.com/hETzvDVk
9. Update slackonly database.
usm -u slackonly
You are done. Start downloading from slackonly using CLI.
usm -g <package name>
Example:-
usm -g wireshark
Code: Select all
The following items were found.
Choose an number to confirm.
ctrl+c to quit
1) wireshark-1.12.2-x86_64-2_slack.txz
#?
slackonly package mostly ends with slack.
Do not update your USM after modifications, else it will be overwritten by the stock version.
DO NOT ISSUE COMMAND : USM -U USM
If you are downloading my files from pastebin, pls remember to remove the .sh and put it in the respective folder.
I have only messed with USM CLI on x86_64. Pls do not ask me about USM GUI or 32bit CLI.
Hopefully it is working for you.
EDIT :
Download usm-3.1.7-x86_64-slackonly-mod-1tct.xzm here:-
https://copy.com/g3e6N9xzlOaLM6Ze