|
@@ -1,27 +1,26 @@
|
|
#!/bin/sh
|
|
#!/bin/sh
|
|
|
|
|
|
-DIST=${DIST:-sid}
|
|
|
|
-DISTRIBUTION=${DIST}
|
|
|
|
|
|
+MIRRORSITE="ftp://ftp.fr.debian.org/debian"
|
|
|
|
+COMPONENTS="main contrib non-free"
|
|
|
|
|
|
BASEPATH="/var/cache/pbuilder/${DIST}.cow"
|
|
BASEPATH="/var/cache/pbuilder/${DIST}.cow"
|
|
-
|
|
|
|
#BINDMOUNTS="/var/cache/apt/archives"
|
|
#BINDMOUNTS="/var/cache/apt/archives"
|
|
|
|
|
|
-MIRRORSITE="http://ftp.fr.debian.org/debian"
|
|
|
|
-COMPONENTS="main contrib non-free"
|
|
|
|
-HOOKDIR="${HOME}/.pbuilder/hooks.d/"
|
|
|
|
|
|
+DISTRIBUTION=$(echo ${DIST}|cut -d- -f1)
|
|
|
|
+if echo ${DIST} | grep -q 'bpo' ; then
|
|
|
|
+ #OTHERMIRROR="deb http://security.debian.org/ lenny/updates main | deb http://www.backports.org/debian lenny-backports main"
|
|
|
|
+ EXTRAPACKAGES="${EXTRAPACKAGES} debian-backports-keyring lintian"
|
|
|
|
+elif echo ${DIST} | grep -q '^experimental' ; then
|
|
|
|
+ EXTRAPACKAGES="${EXTRAPACKAGES} lintian"
|
|
|
|
+ PBUILDERSATISFYDEPENDSCMD=/usr/lib/pbuilder/pbuilder-satisfydepends-experimental
|
|
|
|
+fi
|
|
|
|
|
|
REMOVEPACKAGES=""
|
|
REMOVEPACKAGES=""
|
|
|
|
|
|
-if [ "${DIST}" = "stable-bpo" ]; then
|
|
|
|
- DISTRIBUTION=stable
|
|
|
|
- EXTRAPACKAGES="${EXTRAPACKAGES} debian-backports-keyring lintian"
|
|
|
|
- # OTHERMIRROR="deb http://security.debian.org/ lenny/updates main | deb http://www.backports.org/debian lenny-backports main"
|
|
|
|
-fi
|
|
|
|
-
|
|
|
|
|
|
+HOOKDIR="${HOME}/.pbuilder/hooks.d/"
|
|
BUILDRESULT="${HOME}/tmp/pbuilder"
|
|
BUILDRESULT="${HOME}/tmp/pbuilder"
|
|
|
|
|
|
if [ ! -d "${BUILDRESULT}" ]; then
|
|
if [ ! -d "${BUILDRESULT}" ]; then
|
|
- mkdir -p "${BUILDRESULT}"
|
|
|
|
|
|
+ mkdir -p "${BUILDRESULT}"
|
|
fi
|
|
fi
|
|
|
|
|