Custom package example: Difference between revisions

From LFScript
m Protected "Custom script layout" ([edit=sysop] (indefinite) [move=sysop] (indefinite))
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
This is a sample layout which you must use if you are contributing a custom script. Note that this layout is roughly the same as used in BLFS, however because the page will be imported in LFScript through [[ScriptFactory]] it is important that you follow the style set here '''exactly'''.
This page is a template, which you can use to add your own packages to LFScript. Be sure to also read the details on the [[ScriptFactory Wiki Tags|special commands]] you can use here.


If for any reason, your page causes problems with ScriptFactory, it will be marked as unusable until YOU fix the problem.
<scriptname>my-software</scriptname>


== Sources ==
== Sources ==
* Primary source: [http://www.example.com/sourcecode-1.0.tar.xz http://www.example.com/sourcecode-1.0.tar.xz]
* <sourcecode>http://www.example.com/sourcecode-1.0.tar.xz</sourcecode>
* Alternative source: [http://www.example.com/alt/sourcecode-1.0.tar.xz http://www.example.com/alt/sourcecode-1.0.tar.xz]
* <sourcecode>http://www.example.com/alt/sourcecode-1.0.tar.xz</sourcecode>
* Required patch: [http://www.example.com/patch/sourcecode-1.0_fix.patch http://www.example.com/patch/sourcecode-1.0_fix.patch]
* <sourcecode>http://www.example.com/patch/sourcecode-1.0_fix.patch</sourcecode>


==== MD5 Checksums ====
<md5>9244091002a9d52e91fca0b1f3818ab9  sourcecode-1.0.tar.xz
<pre>9244091002a9d52e91fca0b1f3818ab9  sourcecode-1.0.tar.xz
d41d8cd98f00b204e9800998ecf8427e  sourcecode-1.0_fix.patch</md5>
d41d8cd98f00b204e9800998ecf8427e  sourcecode-1.0_fix.patch</pre>
 
== Dependencies ==
* <dependency value="busybox"></dependency>[[BusyBox]]
* <dependency>libpng</dependency>


== Pre-installation ==
== Pre-installation ==
If your software requires any pre-installation (like adding special users or groups), you must specify it here.
<preinst>useradd -m sampleUser</preinst>
 
== Installation ==
<build>patch -Np1 < ../sourcecode-1.0_fix.patch</build>
 
<build>./configure --prefix=/usr &&
make</build>
 
<build user="root">make install</build>
 
== Packaging note ==
<destdir>prefix</destdir>


<pre class="runAsRoot">useradd -m sampleUser</pre>
== Post-installation ==
<delaypostinst/><postinst>update-desktop-database</postinst>

Latest revision as of 10:40, 5 March 2017

This page is a template, which you can use to add your own packages to LFScript. Be sure to also read the details on the special commands you can use here.

LFScript can find this software under the name my-software.

Sources


MD5 Checksums:

9244091002a9d52e91fca0b1f3818ab9  sourcecode-1.0.tar.xz
d41d8cd98f00b204e9800998ecf8427e  sourcecode-1.0_fix.patch

Dependencies

Pre-installation

useradd -m sampleUser

Installation

patch -Np1 < ../sourcecode-1.0_fix.patch
./configure --prefix=/usr &&
make

As the root user:

make install

Packaging note

The source code of this package does not support the standard use of DESTDIR. In stead it uses

prefix

Post-installation

Note: Post-installation of this software should be performed after all other software has been installed.

update-desktop-database