------------------------------------------------------------ revno: 6105 committer: Miika Komu <miika@xxxxxx> branch nick: hipl timestamp: Mon 2011-10-31 15:12:12 +0200 message: Building and packaging for OpenSUSE From Diego: I have a notebook that runs OpenSUSE, so I quickly ported the packaging infrastructure. I'm not sure this is worth the future maintenance burden, but I thought I might send it anyway. modified: INSTALL packaging/create-package.sh -- lp:hipl https://code.launchpad.net/~hipl-core/hipl/trunk Your team HIPL core team is subscribed to branch lp:hipl. To unsubscribe from this branch go to https://code.launchpad.net/~hipl-core/hipl/trunk/+edit-subscription
=== modified file 'INSTALL' --- INSTALL 2011-09-01 14:33:11 +0000 +++ INSTALL 2011-10-31 13:12:12 +0000 @@ -53,6 +53,16 @@ - binary packages: yum install rpm-build redhat-lsb +openSUSE +-------- +- required: + zypper install autoconf automake libtool make gcc libopenssl-devel iptables-devel \ + perl-Net-IP perl-Net-DNS bzr +- optional: + zypper install xmlto doxygen check-devel +- binary packages: + zypper install rpm lsb-release + How to build HIPL ================= === modified file 'packaging/create-package.sh' --- packaging/create-package.sh 2011-06-10 18:26:38 +0000 +++ packaging/create-package.sh 2011-10-31 13:12:12 +0000 @@ -117,7 +117,7 @@ PKG_SERVER_DIR=$REPO_BASE/ubuntu/dists/$DISTRO_RELEASE/main/binary-${ARCH} BUILDPACKAGE_OPTS=-j32 fi -elif test -r /etc/redhat-release; then +else ARCH=$(uname -i) BUILDDIR=$PWD/rpmbuild PKG_DIR=$BUILDDIR/RPMS/$ARCH @@ -126,9 +126,13 @@ INDEXING_CMD=mkindex_rpm PACKAGING_CMD=build_rpm DISTRO_RELEASE=$(lsb_release -r | cut -f2) - PKG_SERVER_DIR=$REPO_BASE/fedora/base/$DISTRO_RELEASE/$ARCH -else - die "unknown distribution" + if test -r /etc/redhat-release; then + PKG_SERVER_DIR=$REPO_BASE/fedora/base/$DISTRO_RELEASE/$ARCH + elif test -r /etc/SuSE-release; then + PKG_SERVER_DIR=$REPO_BASE/opensuse/$DISTRO_RELEASE/$ARCH + else + die "unknown distribution" + fi fi PKG_INDEX=$PKG_DIR/$PKG_INDEX_NAME