All pastes #560531 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-06-12 03:34 UTC
rendered paste body
Slackports
----------

Slackports is a new project that aims to provide a full ports tree, 
using contributed and tested SlackBuild's, to facilite your work when
installing/removing/upgrading new packages. 
All that we use are: GNU Make and SlackBuild's (Bash script).
It download, check md5 of the source, configure, compile, create the package,
install or remove. Let me show some examples.

Basic operations from the slackports root directory.

# cd /usr/slackports
# make
Usage: make search or make viewchanges
#

# make search
Usage: make search name=<package name>
# make search name=nagios
==> net-mgmt/nagios
==> net-mgmt/nagios-plugins
#

# make viewchanges
Mon Jun 11 23:54:50 BRT 2007
----------------------------
Added packages:

net/rrdtool -> 1.2.15
net-im/bitlbee -> 1.0.3
...
#

So, let's play with the packages :)

# cd net/rrdtool
# make
==> To get the source run: make download
==> To see the dependencies run: make deps
==> To compile the package run: make compile
==> To install the package run: make install
==> To uninstall the package run: make uninstall
==> To clean the build run: make clean

make download
-------------

# make download
.... wget output...

00:16:08 (190.09 KB/s) - `rrdtool-1.2.15.tar.gz' saved [1043064/1043064]

===> File rrdtool-1.2.15.tar.gz is ok, run: make compile
# make download
===> File rrdtool-1.2.15.tar.gz is ok, run: make compile
#

Now, let's fuck the file.

# echo > /usr/slackports/distfiles/rrdtool/rrdtool-1.2.15.tar.gz
# make download
.... wget output...

00:19:48 (190.63 KB/s) - `rrdtool-1.2.15.tar.gz' saved [1043064/1043064]

===> File rrdtool-1.2.15.tar.gz is ok, run: make compile
#

make deps
---------
?

make compile
------------
.... after some configure/make output...

Gzipping rrdtool-1.2.15-i486-1but.tar...

Renaming rrdtool-1.2.15-i486-1but.tar.gz to rrdtool-1.2.15-i486-1but.tgz...

Moving rrdtool-1.2.15-i486-1but.tgz to /usr/slackports/distfiles/rrdtool...

Package creation complete.

==> Run make install to install the package.
#

make install
------------

# make install
Installing package rrdtool-1.2.15-i486-1but... 
PACKAGE DESCRIPTION:
rrdtool: rrdtool (Round Robin Database Tools)
rrdtool:
rrdtool: Rrdtool lets you log and analyze the data you gather from all kinds
rrdtool: of data-sources (DS).
rrdtool: The data analysis part of RRDtool is based on the ability to quickly
rrdtool: generate graphical representations of the data values collected over
rrdtool: a definable time period.
rrdtool:
rrdtool: rrdtool home is http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/
rrdtool:
Executing install script for rrdtool-1.2.15-i486-1but...
#

make uninstall
--------------

# make uninstall
Removing package /var/log/packages/rrdtool-1.2.15-i486-1but...
Removing files:
....
==> Package rrdtool-1.2.15-i486-1but removed.
#

make clean
----------

# make clean
===> Cleaning for rrdtool-1.2.15
#