LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-28-2017, 11:37 AM   #1
linuxtinker
Member
 
Registered: Dec 2013
Location: NJ / USA
Distribution: Slackware 64 -Current
Posts: 232

Rep: Reputation: 99
Script for building a SLACKBUILDS.TXT


Can someone tell me where I might find a script to build a SLACKBUILDS.TXT file. I am trying to set up a local respsitory of slackbuilds for current.


Thanks
 
Old 01-28-2017, 11:47 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
A simple one, from George Vlahavas:
https://github.com/gapan/repo-script...agen-simple.sh

A full-featured one, from Eric Hameleers:
http://slackware.uk/people/alien/too...repos_files.sh
 
Old 01-28-2017, 11:47 AM   #3
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
Alien Bob has a excellent script that will generate all the files like in a hosted repo; Changelog, checksums, filelist, etc.

gen_repos_files.sh

Located here: http://bear.alienbase.nl/mirrors/people/alien/tools/

(Didier beat me to it )

Last edited by Skaendo; 01-28-2017 at 11:48 AM.
 
Old 01-28-2017, 02:33 PM   #4
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Quote:
Originally Posted by linuxtinker View Post
Can someone tell me where I might find a script to build a SLACKBUILDS.TXT file. I am trying to set up a local respsitory of slackbuilds for current.


Thanks
I'm using Eric's gen_repos_files.sh script to generate my repository metadata.
 
Old 01-28-2017, 03:33 PM   #5
linuxtinker
Member
 
Registered: Dec 2013
Location: NJ / USA
Distribution: Slackware 64 -Current
Posts: 232

Original Poster
Rep: Reputation: 99
thanks for those suggestions but those two scripts generate a fileslist.txt. I am trying to build a SLACKBIULDS.TXT file. My local repo is just storing the .sbo files, an example of what i am looking for is at https://slackbuilds.org/slackbuilds/...LACKBUILDS.TXT


Thanks for the help
 
Old 01-28-2017, 05:03 PM   #6
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Just write up a quick script for it.

Code:
for i in */*; do
  NAME=$(echo $i | cut -d "/" -f2)
  FILES=$(ls $i)
  source $i/${NAME}.info
  SHORTDES=$(grep -m 1 $NAME $i/slack-desc | cut -d " " -f2-)
  echo SLACKBUILD NAME: $NAME
  echo SLACKBUILD LOCATION: $i
  echo SLACKBUILD FILES: $FILES
  echo SLACKBUILD VERSION: $VERSION
  echo SLACKBUILD DOWNLOAD: $DOWNLOAD
  echo SLACKBUILD DOWNLOAD_x86_64: $DOWNLOAD_x86_64
  echo SLACKBUILD MD5SUM: $MD5SUM
  echo SLACKBUILD MD5SUM_x86_64: $MD5SUM_x86_64
  echo SLACKBUILD REQUIRES: $REQUIRES
  echo SLACKBUILD SHORT DESCRIPTION: $SHORTDES
  echo
done
This will output everything to the shell... you can just redirect it to a file.

sbo-txt-gen.sh > SLACKBUILDS.TXT
 
2 members found this post helpful.
Old 01-29-2017, 10:41 AM   #7
linuxtinker
Member
 
Registered: Dec 2013
Location: NJ / USA
Distribution: Slackware 64 -Current
Posts: 232

Original Poster
Rep: Reputation: 99
Thanks! bassmadrigal I guess I have to bite the bullet and start learning bash..

I only had to change one line to make it work :

Code:
echo SLACKBUILD LOCATION: "./"$i

Thanks everyone for you help. If I make any more changes to the script ill post here..
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Building Slackbuilds with distcc Nh3xus Slackware 8 08-31-2014 08:35 AM
[SOLVED] Building AlienBob's KDE 4.7.2 packages from the Slackbuilds damgar Slackware 7 10-27-2011 12:11 AM
[SOLVED] issue building chromium from slackbuilds trademark91 Slackware 7 07-24-2011 08:43 AM
[SOLVED] Slackbuilds - Net-SSLay building problem hua Slackware 4 08-01-2010 05:44 AM
[SOLVED] Problem building from slackbuilds ~sHyLoCk~ Slackware 14 05-18-2010 01:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration