From 8c9cc671d8c62dbc83ca0071b7396dbef46acd1f Mon Sep 17 00:00:00 2001 From: mihanson Date: Mon, 29 Aug 2011 15:54:49 -0700 Subject: linhes_dev: README, makepkg.conf and pacman.conf.chroot fixes --- README | 19 +++++++---- templates/makepkg.conf | 1 + templates/pacman.conf.chroot | 81 +++++++++++++++++++++++++------------------- 3 files changed, 60 insertions(+), 41 deletions(-) diff --git a/README b/README index 2f550fb..8905b41 100755 --- a/README +++ b/README @@ -32,16 +32,21 @@ or beta testing. The same applies to extra and extra-testing. linhes-dev contains the tools and scripts for a working development environment, but it is not a working development by itself. The script setup-env.sh will do all the work in creating a working development -environment. The script will download and install the required packages +environment. Get the script at: + http://linhes.org/repo/setup_env.sh +The script will download and install the required packages (from the current stable release) into a directory called build_root and create a script that can be used to enter the chroot. Because LinHES will support multiple architectures, setup-env.sh -requires an argument telling it which architecture to work with. Currently -i686 is the only working option, so that is the one I recommend you use. -For example running "setup-env.sh i686" will create a working i686 LinHES -development environment named build_root.i686. Setup-env.sh also creates an -empty directory structure called pkg_repo, this is used by kmsync.sh -(which will be discussed later). +requires arguments telling it which architecture to work with as well +as which repository (stable or testing) you'd like to develop on. +Currently i686 is the only working architecture option, so that is the +one I recommend you use. + For example running "setup-env.sh i686 testing" will create a +working i686 LinHES development environment named build_root.i686 using +the testing repos. setup-env.sh also creates an empty directory +structure called pkg_repo, this is used by kmsync.sh (which will be +discussed later). To enter the build root run (as root) the newly created script called enter_build_root.i686. The script will take care of the following things: diff --git a/templates/makepkg.conf b/templates/makepkg.conf index 7c97813..5526f48 100644 --- a/templates/makepkg.conf +++ b/templates/makepkg.conf @@ -96,6 +96,7 @@ PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod) PKGDEST=/data/pkg_repo/packages SRCDEST=/data/pkg_repo/sources +SRCPKGDEST=/data/pkg_repo/src_packages PACKAGER="LinHESDev@knoppmyth.net" ######################################################################### diff --git a/templates/pacman.conf.chroot b/templates/pacman.conf.chroot index 66ef97d..53cfc2d 100644 --- a/templates/pacman.conf.chroot +++ b/templates/pacman.conf.chroot @@ -15,25 +15,62 @@ # GENERAL OPTIONS # [options] -LogFile = /var/log/pacman.log -NoUpgrade = etc/passwd etc/group etc/shadow etc/sudoers -NoUpgrade = etc/fstab etc/raidtab etc/ld.so.conf -NoUpgrade = etc/rc.conf etc/rc.local -NoUpgrade = etc/modprobe.conf etc/modules.conf -NoUpgrade = etc/lilo.conf boot/grub/menu.lst +# The following paths are commented out with their default values +listed. +# If you wish to use different paths, uncomment and update the paths. +#RootDir = / +#DBPath = /var/lib/pacman/ +CacheDir = /data/var/cache/pacman/pkg/ +#LogFile = /var/log/pacman.log +HoldPkg = pacman glibc +# If upgrades are available for these packages they will be asked for +first +SyncFirst = pacman +#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u +#XferCommand = /usr/bin/curl -C - -f %u > %o +#CleanMethod = KeepInstalled +Architecture = i686 + +# Pacman won't upgrade packages listed in IgnorePkg and members of +IgnoreGroup +#IgnorePkg = +#IgnoreGroup = + +#NoUpgrade = NoUpgrade = data/srv/hobbit/etc/bb-hosts NoUpgrade = etc/func/minion.conf +#NoExtract = -HoldPkg = pacman glibc -CacheDir = /tmp/dev-pkgcache -#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u +# Misc options (all disabled by default) +#UseSyslog +#ShowSize +#UseDelta +#TotalDownload +#CheckSpace # # REPOSITORIES # - can be defined here or included from another file -# - pacman will search repositories in the order defined here. +# - pacman will search repositories in the order defined here # - local/custom mirrors can be added here or in separate files +# - repositories listed first will take precedence when packages +# have identical names, regardless of version number +# - URLs will have $repo replaced by the name of the current repo +# - URLs will have $arch replaced by the name of the architecture +# +# Repository entries are of the format: +# [repo-name] +# Server = ServerName +# Include = IncludePath +# +# The header [repo-name] is crucial - it must be present and +# uncommented to enable the repo. # + +# The testing repositories are disabled by default. To enable, uncomment the +# repo name header and Include lines. You can add preferred servers immediately +# after the header, and they will be used before the default mirrors. + #[core] #Server = http://knoppmyth.net/repo/REPLACEME/$repo @@ -48,27 +85,3 @@ Server = http://knoppmyth.net/repo/REPLACEME/$repo [extra-testing] Server = http://knoppmyth.net/repo/REPLACEME/$repo - - - - - - -########################ARCH DEFAULTS############# -#[ARCH-core] -# Add your preferred servers here, they will be used first -#Server = ftp://ftp.ibiblio.org/pub/linux/distributions/archlinux/$repo/os/i686 - -#[ARCH-extra] -# Add your preferred servers here, they will be used first -#Server = ftp://ftp.ibiblio.org/pub/linux/distributions/archlinux/$repo/os/i686 - -#[community] -# Add your preferred servers here, they will be used first -#Include = /etc/pacman.d/mirrorlist - -# Unstable is disabled by default. To enable, uncomment the following -# two lines. You can add preferred servers immediately after the header, -# and they will be used before the default mirrors. -#[unstable] -#Include = /etc/pacman.d/mirrorlist -- cgit v0.12