From: Michael Tremer Date: Sun, 9 May 2010 20:20:35 +0000 (+0200) Subject: acpid: New package. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79af96d3a9a8b925fcb39ace3b8be3116c43647f;p=ipfire-3.x.git acpid: New package. --- diff --git a/pkgs/core/acpid/acpid.nm b/pkgs/core/acpid/acpid.nm new file mode 100644 index 000000000..f12a15380 --- /dev/null +++ b/pkgs/core/acpid/acpid.nm @@ -0,0 +1,45 @@ +############################################################################### +# # +# 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 . # +# # +############################################################################### + +############################################################################### +# Definitions +############################################################################### + +include $(PKGROOT)/Include + +PKG_NAME = acpid +PKG_VER = 2.0.4 +PKG_REL = 0 + +PKG_MAINTAINER = +PKG_GROUP = System/Daemons +PKG_URL = http://tedfelix.com/linux/acpid-netlink.html +PKG_LICENSE = GPLv2+ +PKG_SUMMARY = ACPI Event Daemon. + +define PKG_DESCRIPTION + acpid is a daemon that dispatches ACPI events to user-space programs. +endef + +PKG_TARBALL = $(THISAPP).tar.gz + +define STAGE_BUILD + cd $(DIR_APP) && make CC=gcc RPM_OPT_FLAGS="$(CFLAGS)" $(PARALLLEISMFLAGS) +endef diff --git a/pkgs/core/acpid/patches/acpid-2.0.2-makefile.patch b/pkgs/core/acpid/patches/acpid-2.0.2-makefile.patch new file mode 100644 index 000000000..0ba9e7960 --- /dev/null +++ b/pkgs/core/acpid/patches/acpid-2.0.2-makefile.patch @@ -0,0 +1,30 @@ +diff -up acpid-2.0.2/Makefile.makefile acpid-2.0.2/Makefile +diff -up acpid-2.0.2/Makefile.makefile acpid-2.0.2/Makefile +diff -up acpid-2.0.2/Makefile.makefile acpid-2.0.2/Makefile +diff -up acpid-2.0.2/Makefile.makefile acpid-2.0.2/Makefile +diff -up acpid-2.0.2/Makefile.makefile acpid-2.0.2/Makefile +--- acpid-2.0.2/Makefile.makefile 2010-01-27 00:36:23.000000000 +0100 ++++ acpid-2.0.2/Makefile 2010-02-25 16:01:39.641024017 +0100 +@@ -31,8 +31,9 @@ MAN8GZ = $(MAN8:.8=.8.gz) + + DOCS = COPYING Changelog README TESTPLAN TODO + +-CFLAGS = -W -Wall -Werror -Wundef -Wshadow -D_GNU_SOURCE $(OPT) \ +- -fno-strict-aliasing -g $(DEFS) ++CFLAGS = -W -Wall -Werror -Wundef -Wshadow -D_GNU_SOURCE -O2 $(OPT) \ ++ -fno-strict-aliasing -g $(DEFS) $(RPM_OPT_FLAGS) -fPIE ++LDFLAGS = -pie -Wl,-z,relro + DEFS = -DVERSION="\"$(VERSION)\"" + + all: $(PROGS) +@@ -46,8 +47,8 @@ man: $(MAN8) + + install_docs: + mkdir -p $(DESTDIR)/$(DOCDIR) +- for a in $(DOCS); do install -m 0644 $$a $(DESTDIR)/$(DOCDIR) ; done +- cp -a samples $(DESTDIR)/$(DOCDIR) ++ #for a in $(DOCS); do install -m 0644 $$a $(DESTDIR)/$(DOCDIR) ; done ++ #cp -a samples $(DESTDIR)/$(DOCDIR) + + install: $(PROGS) man install_docs + mkdir -p $(DESTDIR)/$(SBINDIR)