# ActionsAPI

## Autotools[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/autotools.html#id1)

| Author:  | Semen Cirit      |
| -------- | ---------------- |
| Date:    | October 26, 2011 |
| Version: | 0.1              |

### configure[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/autotools.html#configure)

```
configure(parameters)
```

Configures the package according to the parameters given by the user and PISI’s default parameters.

The default parameters: (You can see the these defaults from <http://svn.pardus.org.tr/uludag/trunk/pisi/pisi/configfile.py> and <http://svn.pardus.org.tr/uludag/trunk/pisi/pisi/actionsapi/variables.py>)

```
--prefix
--build
--mandir
--infodir
--datadir
--sysconfdir
--localstatedir
--libexecdir
```

Examples:

```
autotools.configure()
autotools.configure("--with-libusb")
```

### rawConfigure[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/autotools.html#rawconfigure)

```
rawConfigure(parameters)
```

Configures the package according to the parameters given by the user.

Examples:

```
autotools.rawConfigure()
autotools.rawConfigure("--prefix=/usr --libdir=/usr/lib --with-doxywizard")
autotools.rawConfigure("--enable-nls --enable-freetype --disable-xmltest)
```

### compile[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/autotools.html#compile)

```
compile(parameters)
```

Compile the package with default GCC binutils, C flags and the parameters given by the user.

Example:

```
autotools.compile("-I/usr/include/dvdread -o dvdbackup src/dvdbackup.c -ldvdread")
```

### make[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/autotools.html#make)

```
make(parameters)
```

Builds the package according to the parameters given by the user.

Examples:

```
autotools
.
make
()
autotools
.
make
(
"local-all"
)
autotools
.
make
(
"LIBS=
%s
"
%
get
.
LDFLAGS
())
autotools
.
make
(
"-j1"
)
```

### install[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/autotools.html#install)

```
install
(
parameters
)
```

Install the package according to the parameters given by the user and PISI’s default parameters.

Examples:

```
autotools
.
install
()
autotools
.
install
(
"libdir=
%s
/usr/lib"
%
get
.
installDIR
())
```

### rawInstall[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/autotools.html#rawinstall)

```
rawInstall
(
parameters
)
```

Install the package according to the parameters given by the user.

Exmples:

```
autotools
.
rawInstall
(
"DESTDIR=
%s
"
%
get
.
installDIR
())
autotools
.
rawInstall
(
"DESTDIR=
\"
%s
\"
 docdir=/usr/share/doc/
%s
/html"
%
(
get
.
installDIR
(),
get
.
srcTAG
()))
```

### aclocal[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/autotools.html#aclocal)

```
aclocal
(
parameters
)
```

Creates an aclocal.m4 file according to the configure.in file.

Examples:

```
autotools
.
aclocal
(
"-I cmulocal -I config"
)
autotools
.
aclocal
(
"-I m4"
)
autotools
.
aclocal
()
```

### autoconf[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/autotools.html#autoconf)

```
autoconf
(
parameters
)
```

Creates the configure script, with given parameters.

Example:

```
autotools
.
autoconf
()
```

### autoreconf[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/autotools.html#autoreconf)

```
autoreconf
(
parameters
)
```

Recreates the configure script with given parameters.

Example:

```
autotools
.
autoreconf
()
```

### automake[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/autotools.html#automake)

```
automake
(
parameters
)
```

Creates the makefile with given parameters.

Examples:

```
autotools
.
automake
(
"-afc"
)
autotools
.
automake
(
"--add-missing"
)
autotools
.
automake
()
```

### autoheader[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/autotools.html#autoheader)

```
autoheader
(
parameters
)
```

Creates the header file for the configure script.

Examples:

```
autotools
.
autoheader
()
```

## Cmaketools[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/cmaketools.html#id1)

| Author:  | Semen Cirit      |
| -------- | ---------------- |
| Date:    | October 26, 2011 |
| Version: | 0.1              |

### configure[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/cmaketools.html#configure)

```
configure
(
parameters
,
sourceDir
,
installPrefix
=
'
%s
'
%
get
.
defaultprefixDIR
())
```

Configures the source with the given cmake parameters.

Examples:

```
cmaketools
.
configure
()
cmaketools
.
configure
(
installPrefix
=
"
%s
"
%
(
get
.
kdeDIR
()))
cmaketools
.
configure
(
"-DCMAKE_BUILD_TYPE=None -DKDEDIR=
%s
"
%
get
.
kdeDIR
(),
sourceDir
=
".."
)
```

### make[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/cmaketools.html#make)

```
make
(
parameters
)
```

Builds the source with the given parameters.

Example:

```
cmaketools
.
make
()
cmaketools
.
make
(
"LIBS=
%s
"
%
get
.
LDFLAGS
())
cmaketools
.
make
(
"-j1"
)
```

### install[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/cmaketools.html#install)

```
install
(
parameters
,
argument
=
'install'
)
```

Installs the source with the parameters given by the user and PISI’s default parameters.

Example:

```
cmaketools
.
install
()
cmaketools
.
install
(
"libdir=
%s
/usr/lib"
%
get
.
installDIR
())
```

### rawInstall[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/cmaketools.html#rawinstall)

```
rawInstall
(
parameters
,
argument
=
'install'
)
```

Installs the source with the parameters given by the user.

Example:

```
cmaketools
.
rawInstall
(
"PREFIX=
%s
"
%
get
.
installDIR
())
```

## Get[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#id1)

| Author:  | Semen Cirit      |
| -------- | ---------------- |
| Date:    | October 26, 2011 |
| Version: | 0.1              |

### Global Functions[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#global-functions)

#### curDIR[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#curdir)

```
get
.
curDIR
()
```

Returns current work directory’s path.

#### curKERNEL[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#curkernel)

```
get
.
curKERNEL
()
```

Returns currently running kernel’s version.

#### curPYTHON[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#curpython)

```
get
.
curPYTHON
()
```

Returns currently used python’s version.

#### curPERL[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#curperl)

```
get
.
curPERL
()
```

Returns currently used perl’s version.

#### ENV[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#env)

```
get
.
ENV
(
environ
)
```

Returns any given environ variable.

Example:

```
get
.
ENV
(
"MAKE_DOC"
)
get
.
ENV
(
"LD_LIBRARY_PATH"
)
```

### PISI Related Functions[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#pisi-related-functions)

#### pkgDIR[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#pkgdir)

```
get
.
pkgDIR
()
```

Returns the path of binary packages. Default is”/var/cache/pisi/packages”.

#### workDIR[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#workdir)

```
get
.
workDIR
()
```

Returns the path of package work directory. For example it can return a path like “/var/pisi/texlive-core-0.0\_20091107-4/work”.

#### installDIR[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#installdir)

```
get
.
installDIR
()
```

Returns the package install directory. For example it can return a path like “/var/pisi/texlive-core-0.0\_20091107-4/install”

### Pardus Release Related Functions[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#pardus-release-related-functions)

#### lsbINFO[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#lsbinfo)

```
get
.
lsbINFO
()
```

Returns a dictionary filled through /etc/lsb-release.

### PSPEC Related Functions[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#pspec-related-functions)

#### srcNAME[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#srcname)

```
get
.
srcNAME
()
```

Returns the name of source package. (i.e. flashplugin)

#### srcVERSION[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#srcversion)

```
get
.
srcVERSION
()
```

Returns the version of source package. (i.e. 5.2\_p1, 10.1.82.76)

#### srcRELEASE[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#srcrelease)

```
get
.
srcRELEASE
()
```

Returns the release number of source package. (i.e. 28)

#### srcTAG[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#srctag)

```
get
.
srcTAG
()
```

Returns the name, version and release number of source package. (i.e. 5.2\_p1-28)

#### srcDIR[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#srcdir)

```
get
.
srcDIR
()
```

Returns the directory name of the package source under “/var/pisi/”. (i.e. teeworlds-0.5.2)

### Build Related Functions[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#build-related-functions)

#### ARCH[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#arch)

```
get
.
ARCH
()
```

Returns the default arch value written at “<http://svn.pardus.org.tr/uludag/trunk/pisi/pisi/configfile.py>” in class GeneralDefaults. (i.e i686)

#### HOST[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#host)

```
get
.
HOST
()
```

Returns the default host value written at “<http://svn.pardus.org.tr/uludag/trunk/pisi/pisi/configfile.py>” in class BuildDefaults. (i.e i686-pc-linux-gnu)

#### CFLAGS[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#cflags)

```
get
.
CFLAGS
()
```

Return the default cflags used for Pardus. You can see them from “<http://svn.pardus.org.tr/uludag/trunk/pisi/pisi/configfile.py>” in class BuildDefaults.

#### CXXFLAGS[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#cxxflags)

```
get
.
CXXFLAGS
()
```

Return the default cxxflags used for Pardus. You can see them from “<http://svn.pardus.org.tr/uludag/trunk/pisi/pisi/configfile.py>” in class BuildDefaults.

#### LDFLAGS[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#ldflags)

```
get
.
LDFLAGS
()
```

Return the default ldflags used for pardus. You can see them from “<http://svn.pardus.org.tr/uludag/trunk/pisi/pisi/configfile.py>” in class BuildDefaults.

#### makeJOBS[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#makejobs)

```
get
.
makeJOBS
()
```

Return the default jobs value used for pardus. You can see it from “<http://svn.pardus.org.tr/uludag/trunk/pisi/pisi/configfile.py>” in class BuildDefaults.

#### buildTYPE[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#buildtype)

```
get
.
buildTYPE
()
```

Return the current build type included in pspec.xml with \<BuildType> tag.

### Directory Related Functions[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#directory-related-functions)

#### docDIR[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#docdir)

```
get
.
docDIR
()
```

Returns the default doc files directory used for Pardus. You can see it from “<http://svn.pardus.org.tr/uludag/trunk/pisi/pisi/actionsapi/variables.py>” in class Dirs.

#### sbinDIR[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#sbindir)

```
get
.
sbinDIR
()
```

Returns the default sbin directory used for Pardus. You can see it from “<http://svn.pardus.org.tr/uludag/trunk/pisi/pisi/actionsapi/variables.py>” in class Dirs.

#### infoDIR[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#infodir)

```
get
.
infoDIR
()
```

Returns the default info files directory used for Pardus. You can see it from “<http://svn.pardus.org.tr/uludag/trunk/pisi/pisi/actionsapi/variables.py>” in class Dirs.

#### manDIR[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#mandir)

```
get
.
manDIR
()
```

Returns the default man files directory used for Pardus. You can see it from “<http://svn.pardus.org.tr/uludag/trunk/pisi/pisi/actionsapi/variables.py>” in class Dirs.

#### dataDIR[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#datadir)

```
get
.
dataDIR
()
```

Returns the default data files directory used for Pardus. You can see it from “<http://svn.pardus.org.tr/uludag/trunk/pisi/pisi/actionsapi/variables.py>” in class Dirs.

#### confDIR[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#confdir)

```
get
.
confDIR
()
```

Returns the default configure files directory used for Pardus. You can see it from “<http://svn.pardus.org.tr/uludag/trunk/pisi/pisi/actionsapi/variables.py>” in class Dirs.

#### localstateDIR[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#localstatedir)

```
get
.
localstateDIR
()
```

Returns the default locale files directory used for Pardus. You can see it from “<http://svn.pardus.org.tr/uludag/trunk/pisi/pisi/actionsapi/variables.py>” in class Dirs.

#### libexecDIR[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#libexecdir)

```
get
.
libexecDIR
()
```

Returns the default library executable directory used for Pardus. You can see it from “<http://svn.pardus.org.tr/uludag/trunk/pisi/pisi/actionsapi/variables.py>” in

#### defaultprefixDIR[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#defaultprefixdir)

```
get
.
defaultprefixDIR
()
```

Returns the default prefix directory used for Pardus. You can see it from “<http://svn.pardus.org.tr/uludag/trunk/pisi/pisi/actionsapi/variables.py>” in class Dirs.

#### kdeDIR[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#kdedir)

```
get
.
kdeDIR
()
```

Returns the default kde directory used for Pardus. You can see it from “<http://svn.pardus.org.tr/uludag/trunk/pisi/pisi/configfile.py>” in class DirectoriesDefaults.

#### qtDIR[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#qtdir)

```
get
.
qtDIR
()
```

Returns the default qt directory used for Pardus. You can see it from “<http://svn.pardus.org.tr/uludag/trunk/pisi/pisi/configfile.py>” in class DirectoriesDefaults.

### Binutils Related Functions[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#binutils-related-functions)

#### AR[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#ar)

```
get
.
AR
()
```

Return GNU ar binutil executable variable of the system where the package being compiled. (i.e. ar)

#### AS[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#as)

```
get
.
AS
()
```

Return GNU assembler binutil executable variable of the system where the package being compiled. (i.e. as)

#### CC[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#cc)

```
get
.
CC
()
```

Return gcc binutil executable variable of the system where the package being compiled. (i.e. i686-pc-linux-gnu-gcc)

#### CXX[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#cxx)

```
get
.
CXX
()
```

Return gcc C++ binutil executable variable of the system where the package being compiled. (i.e. i686-pc-linux-gnu-g++)

#### LD[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#ld)

```
get
.
LD
()
```

Return GNU linker binutil executable variable of the system where the package being compiled. (i.e. ld)

#### NM[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#nm)

```
get
.
NM
()
```

Return GNU nm binutil executable variable of the system where the package being compiled. (i.e. nm)

#### RANLIB[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#ranlib)

```
get
.
RANLIB
()
```

Return ranlib binutil executable variable of the system where the package being compiled. (i.e. ranlib)

#### F77[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#f77)

```
get
.
F77
()
```

Return GNU fortran compiler binutil executable variable of the system where the package being compiled. (i.e. g77)

#### GCJ[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/get.html#gcj)

```
get
.
GCJ
()
```

Return GNU java compiler binutil executable variable of the system where the package being compiled. (i.e. gcj)

## KDE[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/kde.html#id1)

| Author:  | Semen Cirit      |
| -------- | ---------------- |
| Date:    | October 26, 2011 |
| Version: | 0.1              |

### configure[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/kde.html#configure)

```
configure
(
parameters
)
```

Configures the kde packages according to the parameters given by the user and PISI’s

default parameters.

The default parameters: (You can see the these defaults from <http://svn.pardus.org.tr/uludag/trunk/pisi/pisi/configfile.py> and <http://svn.pardus.org.tr/uludag/trunk/pisi/pisi/actionsapi/variables.py>)

```
--prefix
--build
--with-x
--enable-mitshm
--with-xinerama
--with-qt-dir
--enable-mt
--with-qt-libraries
--disable-dependency-tracking
--disable-debug
```

Example:

```
kde.configure("--without-included-sqlite")
kde.configure("--with-libsamplerate")
kde.configure()
```

### make[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/kde.html#make)

```
make(parameters)
```

Builds the kde packages according to the parameters given by the user.

Example::

```
kde.make("-f admin/Makefile.common")
kde.make()
```

### install[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/kde.html#install)

```
install(parameters='install')
```

Install the package according to the parameters given by the user and PISI’s default parameters.

Example:

```
kde.install()
```

## Kerneltools[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/kerneltools.html#id1)

| Author:  | Semen Cirit      |
| -------- | ---------------- |
| Date:    | October 26, 2011 |
| Version: | 0.1              |

### Configuration Part[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/kerneltools.html#configuration-part)

#### getKernelVersion[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/kerneltools.html#getkernelversion)

```
getKernelVersion(flavour=None)
```

Returns the kernel version information to use with external module compilation This is something like 2.6.30\_rc7-119 which will be appended to /lib/modules. If flavour==None, it will return the kernel version in the /etc/kernel/kernel file, else /etc/kernel/\<flavour>. If it fails, it will return the running kernel version.

#### Configure[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/kerneltools.html#configure)

```
configure()
```

It first cleans the system form .orig files, then starts kernel configuration.

#### updateKConfig()[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/kerneltools.html#updatekconfig)

```
updateKConfig()
```

Call this to set newly added symbols to their defaults after sedding some Kernel Configuration parameters.

### Building and Installing Part[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/kerneltools.html#building-and-installing-part)

#### dumpVersion[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/kerneltools.html#dumpversion)

```
dumpVersion()
```

Writes the specific kernel version into /etc/kernel.

#### build[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/kerneltools.html#build)

```
build(debugSymbols=False)
```

Builds the kernel with given debug symbols, the default debugSymbols is False.

#### install[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/kerneltools.html#install)

```
install(installFirmwares=True)
```

It first controls whether loadable module support is available, then it installs the kernel image.

If installFirmwares==False it removes firmwares.

#### installHeaders[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/kerneltools.html#installheaders)

```
installHeaders(extra=[])
```

Installs the additional kernel headers needed to build out-of-tree kernel modules.

Example:

```
kerneltools.installHeaders(extra=["drivers/media/dvb/dvb-core"
,"drivers/media/dvb/frontends","drivers/media/video"])
```

#### installLibcHeaders[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/kerneltools.html#installlibcheaders)

```
installLibcHeaders(excludes=[]):
```

Installs the Linux-Libc-Headers exculuding the givens.

Example:

```
kerneltools.installLibcHeaders(excludes=["scsi"])
```

#### installSource[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/kerneltools.html#installsource)

```
installSource()
```

Installs the kernel source files.

#### cleanModuleFiles[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/kerneltools.html#cleanmodulefiles)

```
cleanModuleFiles()
```

Cleans module.\* files generated by depmod.

#### mkinitramfs[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/kerneltools.html#mkinitramfs)

```
mkinitramfs()
```

Create and install the initramfs image into the package.

## Libtools[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/libtools.html#id1)

| Author:  | Semen Cirit      |
| -------- | ---------------- |
| Date:    | October 26, 2011 |
| Version: | 0.1              |

### preplib[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/libtools.html#preplib)

```
prelib
(
sourceDirectory
)
```

Executes ldconfig command in the sourceDirectory.

Example:

```
libtools
.
preplib
()
```

### gnuconfig\_update[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/libtools.html#gnuconfig-update)

```
gnuconfig_update
()
```

Copies the newest config.sub and config.guess files to the source.

Example:

```
libtools
.
gnuconfig_update
()
```

### libtoolize[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/libtools.html#libtoolize)

```
libtoolize
(
parameters
)
```

Makes it possible to execute libtoolize with given parameters on the source.

Examples:

```
libtools
.
libtoolize
()
libtools
.
libtoolize
(
"--force --copy"
)
libtools
.
libtoolize
(
"--force --install"
)
```

### gen\_usr\_ldscript[¶](http://pisilinux.github.io/developer.pisilinux.io/guides/packaging/actionsapi/libtools.html#gen-usr-ldscript)

```
gen_usr_ldscript
(
dynamicLib
)
```

Since Pardus has critical dynamic libraries in /lib, and the static versions in /usr/lib, we need to have a dynamic lib in /usr/lib, otherwise we run into linking problems.

Examples:

```
libtools
.
gen_usr_ldscript
(
"libhandle.so"
)
libtools
.
gen_usr_ldscript
(
"libhandle.so"
)
libtools
.
gen_usr_ldscript
(
"libdevmapper.so"
)
```
