generate.patch
generate.sh | ||
---|---|---|
39 | 39 |
PACKAGE_TYPE=${PACKAGE_TYPE:-deb} |
40 | 40 |
URL=${URL:-http://opennebula.org} |
41 | 41 | |
42 |
[ $PACKAGE_TYPE = rpm ] && PKGARGS="--rpm-os linux" |
|
43 | ||
42 | 44 |
SCRIPTS_DIR=$PWD |
43 | 45 |
NAME="${PACKAGE_NAME}_${VERSION}.${PACKAGE_TYPE}" |
44 | 46 |
rm $NAME |
... | ... | |
54 | 56 | |
55 | 57 |
cd tmp |
56 | 58 | |
57 |
fpm -n "$PACKAGE_NAME" -t "$PACKAGE_TYPE" -s dir --vendor "$VENDOR" \ |
|
59 |
fpm -n "$PACKAGE_NAME" -t "$PACKAGE_TYPE" $PKGARGS -s dir --vendor "$VENDOR" \
|
|
58 | 60 |
--license "$LICENSE" --description "$DESCRIPTION" --url "$URL" \ |
59 | 61 |
-m "$MAINTAINER" -v "$VERSION" --after-install $SCRIPTS_DIR/postinstall \ |
60 | 62 |
-a all -p $SCRIPTS_DIR/$NAME * |