#!/bin/sh
+set -e
+
path="$1"
-comp="$2"
-shift
-shift
-
-if [ -e "$path/conf/dists" ]; then
- dists=`cat $path/conf/dists`
-else
- dists="$*"
-fi
-if [ -e "$path/conf/components" ]; then
- components=`cat $path/conf/components`
- if [ -n "$comp" ]; then
- if grep -v "\b$comp\b" $path/conf/components ; then
- echo "adding component $comp"
- components="$components $comp"
- echo $components > $path/conf/components
- fi
- fi
-else
- components="$comp"
+if [ ! -d $path ] ; then
+ mkdir -p $path/conf
fi
+echo "$bindir" | grep -v -q '^/' && bindir=`pwd`"/$bindir"
+dists=`cat $bindir/deb_dists`
+components="main"
+
echo "dists $dists"
echo "components $components"
Description: Ceph distributed file system
DebIndices: Packages Release . .gz .bz2
DscIndices: Sources Release .gz .bz2
+Contents: .gz .bz2
SignWith: 17ED316D
EOF