--- /dev/null
+###############################################################################
+# #
+# IPFire.org - A linux based firewall #
+# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
+# #
+# 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 3 of the License, 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 this program. If not, see <http://www.gnu.org/licenses/>. #
+# #
+###############################################################################
+
+###############################################################################
+# Definitions
+###############################################################################
+
+include $(PKGROOT)/Include
+
+PKG_NAME = libcgroup
+PKG_VER = 0.35.1
+PKG_REL = 0
+
+PKG_MAINTAINER =
+PKG_GROUP = Development/Libraries
+PKG_URL = http://libcg.sourceforge.net/
+PKG_LICENSE = LGPLv2+
+PKG_SUMMARY = Tools and libraries to control and monitor control groups.
+
+PKG_PACKAGES += $(PKG_NAME_REAL)-devel
+
+PKG_BUILD_DEPS+= bison gcc-c++ flex
+
+define PKG_DESCRIPTION
+ Control groups infrastructure. The tools and library help manipulate, \
+ control, administrate and monitor control groups and the associated \
+ controllers.
+endef
+
+PKG_TARBALL = $(THISAPP).tar.bz2
+
+CONFIGURE_OPTIONS += \
+ --libdir=/lib \
+ --disable-pam \
+ --disable-tools \
+ --disable-daemon
+
+#define STAGE_TEST
+# cd $(DIR_APP) && make check
+#endef
+
+define STAGE_INSTALL_CMDS
+ rm -rf $(BUILDROOT)/etc
+
+ -mkdir -pv $(BUILDROOT)/usr/lib
+ rm -vf $(BUILDROOT)/lib/libcgroup.so
+ ln -svf ../../lib/libcgroup.so.1 $(BUILDROOT)/usr/lib/libcgroup.so
+endef
+