-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
106 lines (68 loc) · 2.22 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# Install trashy
There are several ways to install trashy:
## Autotools
If you downloaded an official release of trashy, then on most POSIX systems, you can do this:
```
$ ./configure
$ make
$ sudo make install
```
If you have obtained the source code for trashy from its Git repository, then you have to generate the Autotools files first:
```
$ autoreconf --install
$ automake
$ ./configure
$ make
$ sudo make install
```
### Packagers
If you are packaging trashy for distribution, you probably want to do this:
```
$ make dist
```
That generates a tar.gz of only the necessary files for building and installing.
You can use that tarball to create a package for your distribution or port tree.
## Generic
A generic install script is provided, but it requires some adaptation.
You must define the VERSION and BASKET variables in the script (GNU Autotools usually does that), and you must gather ``trashy``,``trashy.8``,and ``install.sh`` in the same directory for it to be able to run to completion.
## Manual
If that fails, you can manually install.
You must define the VERSION and BASKET variables in the script (GNU Autotools usually does that).
Then just copy the ``trashy`` script into your PATH, such as ``~/bin`` or ``/usr/local/bin``, or whatever you have available to you.
## Slackware
On Slackware Linux, use the SlackBuild script included with the trashy source code.
```
$ su -
# ./trashy.SlackBuild
```
## RPM
If you use a distribution that uses RPMs, a package may be available
at http://klaatu.fedorapeople.org/trashy
### Manual RPM
If not, build an RPM from the trashy.spec file included with the
trashy source code. First, install the toolchain:
```
# dnf install rpmdevtools
```
Set up the RPM environment:
```
$ pmdev-setuptree
```
Copy the SPEC file into your tree:
```
$ cp path/to/trashy.spec ~/rpmbuild/SPECS
```
Create a distribution package (.tar.gz) using ``make dist`` and then place that into your tree:
```
$ cp path/to/trashy-x.y.z.tar.gz ~/rpmbuild/SOURCES
```
Build:
```
$ rpmbuild -ba ~/rpmbuild/SPECS/trashy.spec
```
Install:
```
$ sudo dnf install ~/rpmbuild/RPMS/noarch/trash*rpm
```
If you need help, don't hesitate to contact Klaatu at member.fsf.org
or in irc.freenode.net (message 'notklaatu').