3.3. Generate And Install Packages of LCDproc

As an alternative (which is actually better ;) to installing directly from the sources you can generate packages using the packaging tool EPM.

First of all you may need to download EPM from http://www.easysw.com/epm/ and install it according to the instructions that are included in its source distribution.

Debian users (who do not want to download the official debs via apt-get) can of course use the debian package of epm:

# apt-get install epm

Note

There are of course other and maybe better ways to generate packages for your system. The reason for us to choose EPM was that it provides the developers with a tool that makes it possible to write one list file for all platforms defining what the resulting package is meant to look like. This way we do not have to learn all the package managing tools of the different platforms that are supported by LCDproc.

To generate an LCDproc package follow these instructions:

Tip

It is of certain importance that you have run ./configure with the correct pathname settings for your system. Otherwise the resulting package will install the files in the wrong directories.

$ epm -v -f native LCDproc

Note

Generating an RPM package as a non-root user will fail, RPM wants to generate the files from the tree under /usr/src/RPM, which you do not have write access to as a non-root user. If you want to generate the package as a non-root user anyway, you may want to follow these instructions.

A workaround for the described problem is creating a file named ~/.rpmmacros which contains:

%_topdir ~/rpm

Important

~/rpm must contain the same tree usually found under /usr/src/RPM

Unfortunately epm does not read ~/.rpmmacros and of course returns warnings. Don't worry! That's OK ;)

In order to actually install the generated package follow the instructions in your system's manual.