Slackware This Forum is for the discussion of Slackware Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-01-2011, 03:43 PM
|
#1
|
|
Member
Registered: Jun 2010
Distribution: Slackware64_13.37 \ Slackware_13.1 \ ARMedslack_13.37
Posts: 80
Rep:
|
Making a SlackBuild script download from a repository instead of a tarball
Does anyone have a simple how-to on how to modify an existing slackbuild from slackbuilds.org to check source out of a git repo instead of downloading a tarball? Slackbuild in question is 'scantailor'.
I could just change the 'info' file to point to a git snapshot URL, but I would have trouble with the version numbers and tarball checksums needing manual updating, no?
Last edited by ahmadj; 01-01-2011 at 04:00 PM.
|
|
|
|
01-01-2011, 04:42 PM
|
#2
|
|
Member
Registered: Jul 2008
Location: British Columbia
Distribution: Slackware current
Posts: 403
Rep:
|
If it is hosted on gitorious or github, you should be able to point to a particular revision of the code rather than the last commit. In this case, the checksums won't be an issue.
|
|
|
|
01-01-2011, 05:05 PM
|
#3
|
|
Member
Registered: Jun 2010
Distribution: Slackware64_13.37 \ Slackware_13.1 \ ARMedslack_13.37
Posts: 80
Original Poster
Rep:
|
Thanks. But I want to just be able to re-run the script to compile the latest commit.. is that possible?
|
|
|
|
01-01-2011, 05:25 PM
|
#4
|
|
Senior Member
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-13.37
Posts: 1,182
Rep: 
|
If I am understanding correctly you want to the buildscript to download the latest git snapshot and build from that? If so I would just edit the script like so
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 . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
--------------------------
git
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
git clone git://scantailor.git.sourceforge.net/gitroot/scantailor/scantailor
cd $PRGNAM
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
Also don't forget to change your program version to the git snapshot version, for example if you did the build today you could call it r8452. Cause that is the version the git checkout gives you. Of course if you did the build this way you could not submit it to SBO, but it would work for personal use.
Last edited by Daedra; 01-01-2011 at 05:26 PM.
|
|
|
|
01-01-2011, 05:27 PM
|
#5
|
|
Senior Member
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Pclinux, Mandriva, Kubuntu 10.10 Slck13_64-current
Posts: 2,040
Rep: 
|
look at this for some ideas. This down loads it configures it and builds it. also look at the gsb build scripts it down loads it builds it and installs it. Say thank you to alien bob
Last edited by Drakeo; 01-01-2011 at 07:02 PM.
|
|
|
|
01-01-2011, 06:59 PM
|
#6
|
|
Member
Registered: Jun 2010
Distribution: Slackware64_13.37 \ Slackware_13.1 \ ARMedslack_13.37
Posts: 80
Original Poster
Rep:
|
Thanks, Daedra, Drakeo and Eric. I will check those things out
EDIT: Pardon the pun!
|
|
|
|
01-01-2011, 07:45 PM
|
#7
|
|
Member
Registered: Jul 2008
Location: British Columbia
Distribution: Slackware current
Posts: 403
Rep:
|
I'm not sure what the policy of Slackbuilds.org is, but they might not accept taking an arbitrary source code point for the creation of a package. In this case, you would have to use a specific revision which is guaranteed to compile on Slackware (using the most recent snapshot won't give you such a guarantee).
Of course if the slackbuild is for yourself, there's no problem!
|
|
|
|
01-02-2011, 06:48 AM
|
#8
|
|
Senior Member
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Pclinux, Mandriva, Kubuntu 10.10 Slck13_64-current
Posts: 2,040
Rep: 
|
Little off the subject have you read Slackware copy write oh my I love it.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:21 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|