From 7a879c07c38d2828ed7992dd1b7f0fdd5d92d880 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sat, 19 May 2012 03:56:41 +0200 Subject: [PATCH] new package: add package 'lockdev' Signed-off-by: Stephan Raue --- packages/devel/lockdev/build | 35 +++++++++++++++++++++++ packages/devel/lockdev/install | 26 +++++++++++++++++ packages/devel/lockdev/meta | 36 ++++++++++++++++++++++++ tools/mkpkg/mkpkg_lockdev | 51 ++++++++++++++++++++++++++++++++++ 4 files changed, 148 insertions(+) create mode 100755 packages/devel/lockdev/build create mode 100755 packages/devel/lockdev/install create mode 100644 packages/devel/lockdev/meta create mode 100755 tools/mkpkg/mkpkg_lockdev diff --git a/packages/devel/lockdev/build b/packages/devel/lockdev/build new file mode 100755 index 0000000000..ae4137cbc6 --- /dev/null +++ b/packages/devel/lockdev/build @@ -0,0 +1,35 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +cd $PKG_BUILD +./configure --host=$TARGET_NAME \ + --build=$HOST_NAME \ + --prefix=/usr \ + --sysconfdir=/etc \ + --disable-static \ + --enable-shared \ + +make + +$MAKEINSTALL diff --git a/packages/devel/lockdev/install b/packages/devel/lockdev/install new file mode 100755 index 0000000000..9a1692eb11 --- /dev/null +++ b/packages/devel/lockdev/install @@ -0,0 +1,26 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +mkdir -p $INSTALL/usr/lib + cp -P $PKG_BUILD/src/.libs/*.so* $INSTALL/usr/lib diff --git a/packages/devel/lockdev/meta b/packages/devel/lockdev/meta new file mode 100644 index 0000000000..0699ff560e --- /dev/null +++ b/packages/devel/lockdev/meta @@ -0,0 +1,36 @@ +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +PKG_NAME="lockdev" +PKG_VERSION="16b8996" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="GPL" +PKG_SITE="https://alioth.debian.org/scm/?group_id=100443" +PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz" +PKG_DEPENDS="" +PKG_BUILD_DEPENDS="toolchain" +PKG_PRIORITY="optional" +PKG_SECTION="system" +PKG_SHORTDESC="lockdev: Manage character and block device lockfiles." +PKG_LONGDESC="lockdev manages character and block device lockfiles." +PKG_IS_ADDON="no" + +PKG_AUTORECONF="yes" diff --git a/tools/mkpkg/mkpkg_lockdev b/tools/mkpkg/mkpkg_lockdev new file mode 100755 index 0000000000..4dede54bd4 --- /dev/null +++ b/tools/mkpkg/mkpkg_lockdev @@ -0,0 +1,51 @@ +#!/bin/sh +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +echo "getting sources..." + if [ ! -d lockdev.git ]; then + git clone git://anonscm.debian.org/lockdev/lockdev.git -b master lockdev.git + fi + + cd lockdev.git + git pull + GIT_REV=`git log -n1 --format=%h` + cd .. + +echo "copying sources..." + rm -rf lockdev-$GIT_REV + cp -R lockdev.git lockdev-$GIT_REV + +echo "creating VERSION and other needed files" + ( + cd lockdev-$GIT_REV + LC_ALL=C ./scripts/git-version > VERSION + touch ChangeLog + ) + +echo "cleaning sources..." + rm -rf lockdev-$GIT_REV/.git + + +echo "packing sources..." + tar cvJf lockdev-$GIT_REV.tar.xz lockdev-$GIT_REV + +echo "remove temporary sourcedir..." +