LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-19-2006, 12:29 PM   #1
CrEsPo
Member
 
Registered: Apr 2005
Location: Canada
Distribution: Slackware 12
Posts: 184

Rep: Reputation: 30
SlackBuild


I followed a generic SlackBuild to create my own SlackBuild.

I modified a couple of lines, ran the script, and installed the package. The program works so I think I did everything right. There's one thing that I don't think I'm doing right when configuring the SlackBuild. There are still leftover files in the /tmp directory. Should I manually remove them, edit the SlackBuild to remove them or leave them there?

ie:
Code:
[~]$ cd /tmp/
[tmp]$ ls
. . . 
package-vnstat
vnstat-1.4
[tmp]$
 
Old 03-19-2006, 12:49 PM   #2
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
It is usual to have something like:
Code:
# Clean up
if [ "$1" = "--cleanup" ]; then
  rm -rf ${TMP}/${NAME}-${VERSION}
  rm -rf $PKG
fi
at the end of your slackbuild script, and the script cleans up after you when you call it like:
Code:
# sh prog.SlackBuild --cleanup
And yes, it is safe to remove those directories
 
Old 03-19-2006, 01:58 PM   #3
CrEsPo
Member
 
Registered: Apr 2005
Location: Canada
Distribution: Slackware 12
Posts: 184

Original Poster
Rep: Reputation: 30
Thanks for the reply, I realized the template I followed has the following:

Code:
# Clean up the extra stuff:

if [ "$1" = "--cleanup" ]; then
  rm -rf $PKG
fi
When I ran the script I ran it without the --cleanup option. I edited it to include the extra remove and ran it with the --cleanup option and it removes the directories. Thank-you, appreciate the help .
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
a generic SlackBuild shilo Slackware 46 06-19-2008 11:45 PM
KDE 3.5.1 slackbuild? bird603568 Slackware 7 02-04-2006 12:35 AM
SlackBuild guildline kaon Slackware 3 12-22-2005 10:52 AM
KDE.SlackBuild spaceballs Slackware 8 04-01-2005 08:42 AM
SlackBuild system thegeekster Slackware 7 06-01-2004 06:59 PM

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

All times are GMT -5. The time now is 01:43 AM.

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