]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
simplepkg 0.4.9pre2
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Tue, 19 Sep 2006 16:56:25 +0000 (16:56 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Tue, 19 Sep 2006 16:56:25 +0000 (16:56 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@5 04377dda-e619-0410-9926-eae83683ac58

24 files changed:
README
conf/repos.conf.new [moved from repos.conf.new with 100% similarity]
conf/simplepkg.conf.new [moved from simplepkg.conf.new with 100% similarity]
doc/CHANGELOG [moved from CHANGELOG with 95% similarity]
doc/COPYING [moved from COPYING with 100% similarity]
doc/README [new file with mode: 0644]
doc/README.pt_BR [moved from README.pt_BR with 100% similarity]
doc/README.simplaret [moved from README.simplaret with 100% similarity]
doc/README.simplaret.pt_BR [moved from README.simplaret.pt_BR with 100% similarity]
doc/TODO [moved from TODO with 100% similarity]
doinst.sh [deleted file]
install/doinst.sh [new file with mode: 0644]
install/slack-desc [moved from slack-desc with 100% similarity]
lib/common.sh [moved from common.sh with 100% similarity]
simplepkg.SlackBuild
src/createpkg [moved from createpkg with 99% similarity]
src/jail-update [moved from jail-update with 100% similarity]
src/jail-upgrade [moved from jail-upgrade with 100% similarity]
src/lspkg [moved from lspkg with 100% similarity]
src/metapkg [moved from metapkg with 100% similarity]
src/mkjail [moved from mkjail with 100% similarity]
src/rebuildpkg [moved from rebuildpkg with 100% similarity]
src/simplaret [moved from simplaret with 100% similarity]
src/templatepkg [moved from templatepkg with 100% similarity]

diff --git a/README b/README
index 50b0e9d765d52ae8b2a793394934f34b9262e041..b5c715cbc13e8833ab42ba1207ede6425b676a95 100644 (file)
--- a/README
+++ b/README
@@ -1,258 +1,2 @@
-Simplepkg: installation manager and metapackage system
-------------------------------------------------------
-
-Author: Silvio Rhatto <rhatto at riseup.net>
-Licence: GPL
-
-Simplepkg is a non-intrusive package management system running on top of pkgtool.
-It uses templates -- lists of installed packages, scripts and configuration files
--- allowing the creation of installation profiles that can be used do install a
-complete and configured slackware system in another partition or to create chroot
-environments. The same templating scheme extends slackware packaging system, adding
-metapackages: a list of packages installed or removed with a single command.
-
-Documentation
--------------
-
-  English documentation: README | http://slack.sarava.org/node/15
-  Portuguese documentation: REAMDE.pt_BR | http://slack.sarava.org/node/12
-
-Description
------------
-
-All GNU/Linux distributions comes with a well developed packaging system. The question now
-is how pratical is the way to install, configure and control any changes in a system.
-
-As an example, suppose you should keep a list of about 200 slackware machines, some
-of them used as desktops, others as mail or webservers. If you lost some hardrives
-or usually need to re-install or update some of those boxes.
-
-Using the slackware installation cd and configuring by hand all the time you got a crash
-is a time loss activity and you'll never know if something remained missconfigured. An
-alternative is to keep a complete backup of a machine or some parts of the tree, but for
-a large number of different boxes this procedure costs a lots of resources.
-
-Simplepkg offers an alternative sollution for this and other problems related to installation
-management, allowing you to keep templates of each machine and install a custom slackware
-system with just one or a few commands. Creating and upgrading chroot and vservers is easy
-with simplepkg.
-
-Architecture
-------------
-
-Simplepkg is a set of scripts wrote in the KISS philosophy. Its a pretty simple system, composed
-by the following commands:
-
-   - mkjail: build a slackware jail/installation in a folder
-   - metapkg: install or remove a metapackage
-   - templatepkg: create or update a package list of an installation template
-   - lspkg: show installed packages and its contents
-   - jail-upgrade: upgrade all or some of the jails/installations 
-   - jail-update: update all configuration files of a template
-   - rebuildpkg: rebuild a package based on its /var/log/packages entry
-   - simplaret: package retrieval tool
-   - createpkg: donwload, compile and package creationg script based on http://slack.sarava.org/slackbuilds
-
-Simplepkg configs are placed at /etc/simplepkg. Templates are .template files containing an one-by-line
-package list. A template can be something like this:
-
-  aaa_base
-  aaa_elflibs
-  apache
-  bash
-  bin
-  coreutils
-  findutils
-
-Slackware's tagfile format can be used too as a template.
-
-Installation
-------------
-
-The latest version of simplepkg is locate at http://slack.sarava.org/packages/noarch/.
-Install it with the usual way:
-
-  installpkg simplepkg-VERSION-noarch-BUILD.tgz
-
-If you have a working swaret on your system, add this line on you swaret.conf:
-
-  REPOS_ROOT=SlackMidiataticaNoarch%http://slack.sarava.org/packages/noarch
-
-and then issue those commands:
-
-  swaret --update
-  swaret --install simplepkg
-
-Configuration
--------------
-
-As an example, we'll create a jail based on the packages installed in your slackware
-system. Edit the config file /etc/simplepkg/simplepkg.conf:
-
-  # /etc/simplepkg/simplepkg.conf
-  JAIL_ROOT="/vservers" # where jails are placed
-  SIMPLARET="simplaret" # package grabber program (can be swaret if you have it installed)
-  SIMPLARET_CLEAN="1" # clean package cache before installation
-  SIMPLARET_DELETE_DOWN="1" # clean package cache after the installation
-  SIMPLARET_UPDATE="0" # issue an simplaret --update before install the jail
-  SIMPLARET_PURGE_WEEKS="N" # delete packages older than N weeks from the cache
-  PATCHES_DIR="/storage/package/patches" # where patches are placed
-  DEFAULT_ARCH="i386"
-  DEFAULT=VERSION="10.2"
-  STORAGE="/storage/packages" # where simplepkg store packages
-  PASSIVE_FTP="1"
-
-You should also put in /etc/simplepkg/repos.conf all package repositories you use, like this:
-
-  ROOT-i386="http://slack.sarava.org/packages/slackware"
-  REPOS-i386="slack-sarava%http://slack.sarava.org/packages/slackware/slackware-10.2/"
-  ROOT-x86_64-10.2="http://darkstar.ist.utl.pt/pub/slamd64/"
-  REPOS-x86_64-10.2="slamd-sarava%http://slack.sarava.org/packages/slamd64/slamd64-10.2/"
-
-Instead of simplaret you can use swaret to fetch packages and them your swaret.conf must
-be configured to use the same place as STORAGE to the package cache. In this case you cant
-keep installations and jails with multiple arquitetures and for that reason the use of
-simplaret is recommended.
-
-Creating jails and replicating installations
---------------------------------------------
-
-  templatepkg my-slackare
-  mkjail jail my-slackware
-
-The previous commands creates a template called my-slackware from based on your installed
-softwares listed in /var/log/packages and then creates a completely new slackware
-tree with all those packages in the folder /vservers/jail (depending on the value of JAIL_ROOT from
-your simplepkg.conf).
-
-If you want that some config files get copied or some scripts executed after install this jail,
-place in the folder /etc/simplepkg/my-slackware.d all your config files (preserving the file
-system hierarchy, i.e, /etc/simplepkg/my-slackware/etc/apache/httpd.conf) and the scripts at
-/etc/simplepkg/my-slackware.s/. The template vserver, which comes in the simplepkg package, has
-an example script to use with mkjail.
-
-You can specify an alternative destination for your jail with a command like
-
-  ROOT=/mnt mkjail hda2 my-slackware
-
-This does exactly what you think: installs slackware in /mnt/hda2 with exactly the same packages
-you have on your system, replacing the need of the slackware installer!
-
-In case no template specified, mkjail uses the one called /etc/simplepkg/default.template.
-
-If you keep your jails in JAIL_ROOT with the same name as the template you used to create it, its
-possible to use the command jail-update to copy all modifications made in the files which their
-counterparts are placed at /etc/simplepkg/jail-name.d. Then you can copy all configuration files
-you edited to the template folder and leave a crontab entry to everyday seek for changes and update
-the template. When you issue the command
-
-  jail-update
-
-all jails listed in /etc/simplepkg/jaillist are updated. This command also updates the package list
-of the template.
-
-To add or remove packages from a template, you can just edit by hand the template file or use the
-command templatepkg with the -a (append) flag, which adds just the new installed packages in the
-template file. 
-
-If you want to create a template from a jail, use
-
-  templatepkg jail /vservers/jail
-
-Metapackages
-------------
-
-Another use for the templates is the creation of metapackegs: new users have lots of difficulties
-to track dependencies when installing a software. Using a template containing the name of all
-packages needed by some program allow users to easily install it through the command
-
-  metapkg --install program-name
-
-This seems like swaret or slapt-get, with the only difference in the way metapkg deals with
-dependence resolution. Slapt-get support the slack-required file, wich comes or not with the
-package. Swaret has its own tool for dependence matching.
-
-Simplepkg doesn't wish to substitute those two dependence checking modes, but offer an alternate
-way to distribute packages where dependences are resolved without an specific tool or a change
-in the package itself.
-
-A metapackage, i.e, all installed packages from a template, can be removed with 
-
-  metapkg --remove program-name
-
-Upgrading jails
----------------
-
-Both the main installation (your root system) and your jails are upgraded with the command
-jail-upgrade: just adjust simplepkg.conf's PATCHES_DIR to where you store slackware patches
-(that can be rsync'ed everyday) and do a
-
-  jail-upgrade
-
-This will upgrade your main system and all jails living in JAIL_ROOT. To specify another
-folder, use
-
-  ROOT=/otherroot jail-upgrade
-
-If you want to upgrade just one specific jail,
-
-  jail-upgrade jail-name
-
-To use a patches folder other than PATCHES_DIR, e.g when you have jails with different
-slackware versions, use
-  PATCHES=/alternative/patches/folder jail-upgrade jail-name
-
-Different archs and versions
-----------------------------
-
-Simplepkg was idealized to permit a template to create jails from any architecture and version
-of a slackware-like system. Upgrading tasks also are unified. This feature just works if you
-use simplaret and not swaret as the package retrieval tool.
-
-As another example, to create an slack 10.1 installation (assuming your /etc/simplepkg/repos.conf with
-the right configuration), just type
-
-  VERSION=10.1 mkjail my-jail server-template 
-
-Different archs can be used too. If you have a x86_64 system and wants to install a slack 10.2
-in a partition, try something like
-
-  ARCH=i386 VERSION=10.2 ROOT=/mnt mkjail hda2 my-slackware
-
-Note that the templates are arch and version independent, as they just contain package names,
-configuration files and scripts. For this reason, the commands templatepkg, metapkg, lspkg and
-jail-update can be used normaly.
-
-To upgrade jails with othes archs and versions, jail-upgrade checks this information through
-/etc/slackware-version for each jail and applies the correspondent patches grabed from
-simplaret (see the proper documentation).
-
-By this way, doesn't matter which versions and archs each of your jails has, jail-upgrade remains
-the same since your patches are sorted by arch an version, as explained in simplaret documentation
-found at http://slack.sarava.org/node/17.
-
-Auxiliar applications: rebuildpkg and createpkg
------------------------------------------------
-
-Simplepkg comes with an additional helper tool that recover installed packages which the original
-.tgz file was lost. The command rebuildpkg rebuilds a package from their entry in /var/log/packages.
-As an example,
-
-  rebuildpkg coreutils
-
-rebuilds the coreutils package using the files, scripts and metainformations stored in
-/var/log/packages/ and /var/log/scripts/.
-
-If you want to build you own packages using the scripts available from http://slack.sarava.org/slackbuilds,
-use the createpkg script:
-
-  createpkg package-name
-
-Source
-------
-
-Source code for simplepkg and its package builder can be fetched via subversion:
-
-  svn checkout svn://slack.sarava.org/simplepkg
-
+See doc/README for more information.
+Portuguese documentation at doc/README.pt_BR
similarity index 100%
rename from repos.conf.new
rename to conf/repos.conf.new
similarity index 100%
rename from simplepkg.conf.new
rename to conf/simplepkg.conf.new
similarity index 95%
rename from CHANGELOG
rename to doc/CHANGELOG
index 2de335a0ad120b4d3ba589d6fa45f4a041c80ae7..847ec3b9d5891b98e8dc36a2f3c58f9ee755852e 100644 (file)
--- a/CHANGELOG
@@ -1,7 +1,8 @@
 simplepkg changelog
 -------------------
 
-0.4.9pre1: added createpkg
+0.4.9pre2: re-organized the source repository
+           added createpkg
            updated README and README.pt_BR
 
 0.4.8: simplaret: removed extra folder from slamd64 definition
similarity index 100%
rename from COPYING
rename to doc/COPYING
diff --git a/doc/README b/doc/README
new file mode 100644 (file)
index 0000000..50b0e9d
--- /dev/null
@@ -0,0 +1,258 @@
+Simplepkg: installation manager and metapackage system
+------------------------------------------------------
+
+Author: Silvio Rhatto <rhatto at riseup.net>
+Licence: GPL
+
+Simplepkg is a non-intrusive package management system running on top of pkgtool.
+It uses templates -- lists of installed packages, scripts and configuration files
+-- allowing the creation of installation profiles that can be used do install a
+complete and configured slackware system in another partition or to create chroot
+environments. The same templating scheme extends slackware packaging system, adding
+metapackages: a list of packages installed or removed with a single command.
+
+Documentation
+-------------
+
+  English documentation: README | http://slack.sarava.org/node/15
+  Portuguese documentation: REAMDE.pt_BR | http://slack.sarava.org/node/12
+
+Description
+-----------
+
+All GNU/Linux distributions comes with a well developed packaging system. The question now
+is how pratical is the way to install, configure and control any changes in a system.
+
+As an example, suppose you should keep a list of about 200 slackware machines, some
+of them used as desktops, others as mail or webservers. If you lost some hardrives
+or usually need to re-install or update some of those boxes.
+
+Using the slackware installation cd and configuring by hand all the time you got a crash
+is a time loss activity and you'll never know if something remained missconfigured. An
+alternative is to keep a complete backup of a machine or some parts of the tree, but for
+a large number of different boxes this procedure costs a lots of resources.
+
+Simplepkg offers an alternative sollution for this and other problems related to installation
+management, allowing you to keep templates of each machine and install a custom slackware
+system with just one or a few commands. Creating and upgrading chroot and vservers is easy
+with simplepkg.
+
+Architecture
+------------
+
+Simplepkg is a set of scripts wrote in the KISS philosophy. Its a pretty simple system, composed
+by the following commands:
+
+   - mkjail: build a slackware jail/installation in a folder
+   - metapkg: install or remove a metapackage
+   - templatepkg: create or update a package list of an installation template
+   - lspkg: show installed packages and its contents
+   - jail-upgrade: upgrade all or some of the jails/installations 
+   - jail-update: update all configuration files of a template
+   - rebuildpkg: rebuild a package based on its /var/log/packages entry
+   - simplaret: package retrieval tool
+   - createpkg: donwload, compile and package creationg script based on http://slack.sarava.org/slackbuilds
+
+Simplepkg configs are placed at /etc/simplepkg. Templates are .template files containing an one-by-line
+package list. A template can be something like this:
+
+  aaa_base
+  aaa_elflibs
+  apache
+  bash
+  bin
+  coreutils
+  findutils
+
+Slackware's tagfile format can be used too as a template.
+
+Installation
+------------
+
+The latest version of simplepkg is locate at http://slack.sarava.org/packages/noarch/.
+Install it with the usual way:
+
+  installpkg simplepkg-VERSION-noarch-BUILD.tgz
+
+If you have a working swaret on your system, add this line on you swaret.conf:
+
+  REPOS_ROOT=SlackMidiataticaNoarch%http://slack.sarava.org/packages/noarch
+
+and then issue those commands:
+
+  swaret --update
+  swaret --install simplepkg
+
+Configuration
+-------------
+
+As an example, we'll create a jail based on the packages installed in your slackware
+system. Edit the config file /etc/simplepkg/simplepkg.conf:
+
+  # /etc/simplepkg/simplepkg.conf
+  JAIL_ROOT="/vservers" # where jails are placed
+  SIMPLARET="simplaret" # package grabber program (can be swaret if you have it installed)
+  SIMPLARET_CLEAN="1" # clean package cache before installation
+  SIMPLARET_DELETE_DOWN="1" # clean package cache after the installation
+  SIMPLARET_UPDATE="0" # issue an simplaret --update before install the jail
+  SIMPLARET_PURGE_WEEKS="N" # delete packages older than N weeks from the cache
+  PATCHES_DIR="/storage/package/patches" # where patches are placed
+  DEFAULT_ARCH="i386"
+  DEFAULT=VERSION="10.2"
+  STORAGE="/storage/packages" # where simplepkg store packages
+  PASSIVE_FTP="1"
+
+You should also put in /etc/simplepkg/repos.conf all package repositories you use, like this:
+
+  ROOT-i386="http://slack.sarava.org/packages/slackware"
+  REPOS-i386="slack-sarava%http://slack.sarava.org/packages/slackware/slackware-10.2/"
+  ROOT-x86_64-10.2="http://darkstar.ist.utl.pt/pub/slamd64/"
+  REPOS-x86_64-10.2="slamd-sarava%http://slack.sarava.org/packages/slamd64/slamd64-10.2/"
+
+Instead of simplaret you can use swaret to fetch packages and them your swaret.conf must
+be configured to use the same place as STORAGE to the package cache. In this case you cant
+keep installations and jails with multiple arquitetures and for that reason the use of
+simplaret is recommended.
+
+Creating jails and replicating installations
+--------------------------------------------
+
+  templatepkg my-slackare
+  mkjail jail my-slackware
+
+The previous commands creates a template called my-slackware from based on your installed
+softwares listed in /var/log/packages and then creates a completely new slackware
+tree with all those packages in the folder /vservers/jail (depending on the value of JAIL_ROOT from
+your simplepkg.conf).
+
+If you want that some config files get copied or some scripts executed after install this jail,
+place in the folder /etc/simplepkg/my-slackware.d all your config files (preserving the file
+system hierarchy, i.e, /etc/simplepkg/my-slackware/etc/apache/httpd.conf) and the scripts at
+/etc/simplepkg/my-slackware.s/. The template vserver, which comes in the simplepkg package, has
+an example script to use with mkjail.
+
+You can specify an alternative destination for your jail with a command like
+
+  ROOT=/mnt mkjail hda2 my-slackware
+
+This does exactly what you think: installs slackware in /mnt/hda2 with exactly the same packages
+you have on your system, replacing the need of the slackware installer!
+
+In case no template specified, mkjail uses the one called /etc/simplepkg/default.template.
+
+If you keep your jails in JAIL_ROOT with the same name as the template you used to create it, its
+possible to use the command jail-update to copy all modifications made in the files which their
+counterparts are placed at /etc/simplepkg/jail-name.d. Then you can copy all configuration files
+you edited to the template folder and leave a crontab entry to everyday seek for changes and update
+the template. When you issue the command
+
+  jail-update
+
+all jails listed in /etc/simplepkg/jaillist are updated. This command also updates the package list
+of the template.
+
+To add or remove packages from a template, you can just edit by hand the template file or use the
+command templatepkg with the -a (append) flag, which adds just the new installed packages in the
+template file. 
+
+If you want to create a template from a jail, use
+
+  templatepkg jail /vservers/jail
+
+Metapackages
+------------
+
+Another use for the templates is the creation of metapackegs: new users have lots of difficulties
+to track dependencies when installing a software. Using a template containing the name of all
+packages needed by some program allow users to easily install it through the command
+
+  metapkg --install program-name
+
+This seems like swaret or slapt-get, with the only difference in the way metapkg deals with
+dependence resolution. Slapt-get support the slack-required file, wich comes or not with the
+package. Swaret has its own tool for dependence matching.
+
+Simplepkg doesn't wish to substitute those two dependence checking modes, but offer an alternate
+way to distribute packages where dependences are resolved without an specific tool or a change
+in the package itself.
+
+A metapackage, i.e, all installed packages from a template, can be removed with 
+
+  metapkg --remove program-name
+
+Upgrading jails
+---------------
+
+Both the main installation (your root system) and your jails are upgraded with the command
+jail-upgrade: just adjust simplepkg.conf's PATCHES_DIR to where you store slackware patches
+(that can be rsync'ed everyday) and do a
+
+  jail-upgrade
+
+This will upgrade your main system and all jails living in JAIL_ROOT. To specify another
+folder, use
+
+  ROOT=/otherroot jail-upgrade
+
+If you want to upgrade just one specific jail,
+
+  jail-upgrade jail-name
+
+To use a patches folder other than PATCHES_DIR, e.g when you have jails with different
+slackware versions, use
+  PATCHES=/alternative/patches/folder jail-upgrade jail-name
+
+Different archs and versions
+----------------------------
+
+Simplepkg was idealized to permit a template to create jails from any architecture and version
+of a slackware-like system. Upgrading tasks also are unified. This feature just works if you
+use simplaret and not swaret as the package retrieval tool.
+
+As another example, to create an slack 10.1 installation (assuming your /etc/simplepkg/repos.conf with
+the right configuration), just type
+
+  VERSION=10.1 mkjail my-jail server-template 
+
+Different archs can be used too. If you have a x86_64 system and wants to install a slack 10.2
+in a partition, try something like
+
+  ARCH=i386 VERSION=10.2 ROOT=/mnt mkjail hda2 my-slackware
+
+Note that the templates are arch and version independent, as they just contain package names,
+configuration files and scripts. For this reason, the commands templatepkg, metapkg, lspkg and
+jail-update can be used normaly.
+
+To upgrade jails with othes archs and versions, jail-upgrade checks this information through
+/etc/slackware-version for each jail and applies the correspondent patches grabed from
+simplaret (see the proper documentation).
+
+By this way, doesn't matter which versions and archs each of your jails has, jail-upgrade remains
+the same since your patches are sorted by arch an version, as explained in simplaret documentation
+found at http://slack.sarava.org/node/17.
+
+Auxiliar applications: rebuildpkg and createpkg
+-----------------------------------------------
+
+Simplepkg comes with an additional helper tool that recover installed packages which the original
+.tgz file was lost. The command rebuildpkg rebuilds a package from their entry in /var/log/packages.
+As an example,
+
+  rebuildpkg coreutils
+
+rebuilds the coreutils package using the files, scripts and metainformations stored in
+/var/log/packages/ and /var/log/scripts/.
+
+If you want to build you own packages using the scripts available from http://slack.sarava.org/slackbuilds,
+use the createpkg script:
+
+  createpkg package-name
+
+Source
+------
+
+Source code for simplepkg and its package builder can be fetched via subversion:
+
+  svn checkout svn://slack.sarava.org/simplepkg
+
similarity index 100%
rename from README.pt_BR
rename to doc/README.pt_BR
similarity index 100%
rename from README.simplaret
rename to doc/README.simplaret
diff --git a/TODO b/doc/TODO
similarity index 100%
rename from TODO
rename to doc/TODO
diff --git a/doinst.sh b/doinst.sh
deleted file mode 100644 (file)
index d8bcadf..0000000
--- a/doinst.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-( echo please edit /etc/simplepkg/simplepkg.conf.new and /etc/simplepkg/repos.conf.new )
-( echo and rename them to /etc/simplepkg/simplepkg.conf and /etc/simplepkg/repos.conf )
diff --git a/install/doinst.sh b/install/doinst.sh
new file mode 100644 (file)
index 0000000..f205158
--- /dev/null
@@ -0,0 +1,2 @@
+( if [ ! -f "/etc/simplepkg/simplepkg.conf" ]; then mv /etc/simplepkg.conf.new /etc/simplepkg/simplepkg.conf; fi )
+( if [ ! -f "/etc/simplepkg/repos.conf" ]; then mv /etc/simplepkg/repos.conf.new /etc/simplepkg/repos.conf; fi )
similarity index 100%
rename from slack-desc
rename to install/slack-desc
similarity index 100%
rename from common.sh
rename to lib/common.sh
index 26a2d5aed568ea6974fe3ce43233027771ab2b89..7f435b2e0146f3efd7ee7177da18cdfeca7f87cf 100755 (executable)
@@ -6,7 +6,7 @@
 PACKAGE="simplepkg"
 PACK_DIR="package-$PACKAGE"
 BUILD="1rha"
-VERSION="0.4.9pre1"
+VERSION="0.4.9pre2"
 ARCH="noarch"
 
 LIBEXEC="/usr/libexec/$PACKAGE"
@@ -18,24 +18,24 @@ DOC_LIST="COPYING TODO CHANGELOG README README.pt_BR README.simplaret README.sim
 
 rm -rf $PACK_DIR
 mkdir -p $PACK_DIR/install
-cp slack-desc $PACK_DIR/install
-cp doinst.sh $PACK_DIR/install
+cp install/slack-desc $PACK_DIR/install
+cp install/doinst.sh $PACK_DIR/install
 
 mkdir -p $PACK_DIR/$BINDIR
 for binary in $BINARY_LIST; do
-  chmod +x $binary
-  cp $binary $PACK_DIR/$BINDIR
+  cp src/$binary $PACK_DIR/$BINDIR
+  chmod +x $PACK_DIR/$BINDIR/$binary
 done
 
 mkdir -p $PACK_DIR/$LIBEXEC
 for lib in $LIB_LIST; do
-  cp $lib $PACK_DIR/$LIBEXEC/
+  cp lib/$lib $PACK_DIR/$LIBEXEC/
 done
 
 rm -rf $PACK_DIR/$DOC_DIR
 mkdir -p $PACK_DIR/$DOC_DIR/$PACKAGE-$VERSION
 for file in $DOC_LIST; do
- cp $file $PACK_DIR/$DOC_DIR/$PACKAGE-$VERSION/
+ cp doc/$file $PACK_DIR/$DOC_DIR/$PACKAGE-$VERSION/
 done
 
 # especifico do simplepkg
@@ -43,8 +43,8 @@ mkdir -p $PACK_DIR/etc/$PACKAGE/
 rsync -av --exclude=.svn templates/* $PACK_DIR/etc/$PACKAGE/
 chmod +x $PACK_DIR/etc/$PACKAGE/vserver.s/*.sh
 chmod +x $PACK_DIR/etc/$PACKAGE/vserver-legacy.s/*.sh
-cp simplepkg.conf.new $PACK_DIR/etc/$PACKAGE
-cp repos.conf.new $PACK_DIR/etc/$PACKAGE
+cp conf/simplepkg.conf.new $PACK_DIR/etc/$PACKAGE
+cp conf/repos.conf.new $PACK_DIR/etc/$PACKAGE
 cd $PACK_DIR/usr/sbin && ln -s jail-upgrade vserver-upgrade
 cd -
 
similarity index 99%
rename from createpkg
rename to src/createpkg
index 0faa82df7028b189ea874e82696d770cb6fb16a2..45fb3293f1a55b953235cccfd6012d6d1d4d4512 100644 (file)
--- a/createpkg
@@ -95,6 +95,8 @@ function solve_dep {
 
   if [ "$found" != "1" ]; then
     createpkg --install $pack
+  else
+    found="0"
   fi
 
 }
similarity index 100%
rename from jail-update
rename to src/jail-update
similarity index 100%
rename from jail-upgrade
rename to src/jail-upgrade
diff --git a/lspkg b/src/lspkg
similarity index 100%
rename from lspkg
rename to src/lspkg
similarity index 100%
rename from metapkg
rename to src/metapkg
similarity index 100%
rename from mkjail
rename to src/mkjail
similarity index 100%
rename from rebuildpkg
rename to src/rebuildpkg
similarity index 100%
rename from simplaret
rename to src/simplaret
similarity index 100%
rename from templatepkg
rename to src/templatepkg