Forum archive
Trying to understand how to tklpatch
dear all
I'm trying to know how to play with tklpatch
based on : /docs/tklpatch/development , and
example of drupal5 patch
1. the skleton
mkdir mypatch
mkdir mypatch/debs
mkdir mypatch/overlay
touch mypatch/conf; chmod +x mypatch/conf
CMIIW :
mypatch
++ this is the developmen directory root
mypatch/debs
++ this is where we have to put all needed deb files
In example
while in "normal" condition I want to install mc :
bino@fileserver:/usr/share/tklpatch/examples$ sudo apt-get install mc Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libgpmg1 Suggested packages: gpm arj links w3m lynx The following NEW packages will be installed: libgpmg1 mc
It'll means that if I want to create a patch that add mc to tkl-core, i'll have to put deb files :
- libgpmg1_1.19.6-25ubuntu1_i386.deb
- mc_1%3a4.6.1-8ubuntu1_i386.deb
into this directory
mypatch/overlay
++ this is where we have to put files that we want it to be copied after the installation process. the subdirectory tree is folowing ubuntu directory tree mode/schema.
So , every files inside /mypatch/overlay/etc will be copied to /etc of finished product
touch mypatch/conf; chmod +x mypatch/conf
++this is the script that will be called by TKL core for installing packages
a cut from drupal5 patch
# install drupal5
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get -y \
-o DPkg::Options::=--force-confdef \
-o DPkg::Options::=--force-confold \
install drupal5It means that I want to add mc, it'll look like
# install mc
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get -y \
-o DPkg::Options::=--force-confdef \
-o DPkg::Options::=--force-confold \
install mcKindly please give me your correction
Sincerely
-bino-