Compare commits
3 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
262f94d9d7 | ||
|
|
26e989b0ce | ||
|
|
41ade91633 |
5 changed files with 19 additions and 29 deletions
0
.cvsignore → .gitignore
vendored
0
.cvsignore → .gitignore
vendored
21
Makefile
21
Makefile
|
|
@ -1,21 +0,0 @@
|
||||||
# Makefile for source rpm: netlabel_tools
|
|
||||||
# $Id: Makefile,v 1.1 2006/09/01 18:37:54 james Exp $
|
|
||||||
NAME := netlabel_tools
|
|
||||||
SPECFILE = $(firstword $(wildcard *.spec))
|
|
||||||
|
|
||||||
define find-makefile-common
|
|
||||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
|
||||||
endef
|
|
||||||
|
|
||||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
|
||||||
|
|
||||||
ifeq ($(MAKEFILE_COMMON),)
|
|
||||||
# attept a checkout
|
|
||||||
define checkout-makefile-common
|
|
||||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
|
||||||
endef
|
|
||||||
|
|
||||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
|
||||||
endif
|
|
||||||
|
|
||||||
include $(MAKEFILE_COMMON)
|
|
||||||
2
netlabel
2
netlabel
|
|
@ -75,7 +75,7 @@ status() {
|
||||||
# List rules
|
# List rules
|
||||||
/sbin/netlabelctl -p cipsov4 list 2>/dev/null
|
/sbin/netlabelctl -p cipsov4 list 2>/dev/null
|
||||||
ret1="$?"
|
ret1="$?"
|
||||||
/sbin/netlabelctl -p mgmt list 2>/dev/null
|
/sbin/netlabelctl -p mgmt protocols 2>/dev/null
|
||||||
ret2="$?"
|
ret2="$?"
|
||||||
|
|
||||||
if [ "$ret1" != "0" -o "$ret2" != "0" ] ; then
|
if [ "$ret1" != "0" -o "$ret2" != "0" ] ; then
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
diff -up netlabel_tools-0.17/Makefile.orig netlabel_tools-0.17/Makefile
|
diff -up netlabel_tools-0.19/Makefile.new-hdrs netlabel_tools-0.19/Makefile
|
||||||
--- netlabel_tools-0.17/Makefile.orig 2006-09-28 18:18:05.000000000 -0400
|
--- netlabel_tools-0.19/Makefile.new-hdrs 2009-01-05 22:24:24.000000000 +0100
|
||||||
+++ netlabel_tools-0.17/Makefile 2008-08-11 14:57:31.000000000 -0400
|
+++ netlabel_tools-0.19/Makefile 2010-06-16 13:36:55.170646610 +0200
|
||||||
@@ -43,8 +43,9 @@ INSTALL_SBIN_DIR = $(INSTALL_PREFIX)/sbi
|
@@ -41,8 +41,9 @@ INSTALL_SBIN_DIR = $(INSTALL_PREFIX)/sbi
|
||||||
INSTALL_BIN_DIR = $(INSTALL_PREFIX)/bin
|
INSTALL_BIN_DIR = $(INSTALL_PREFIX)/bin
|
||||||
INSTALL_MAN_DIR = $(INSTALL_PREFIX)/share/man
|
INSTALL_MAN_DIR = $(INSTALL_PREFIX)/share/man
|
||||||
|
|
||||||
|
|
@ -13,7 +13,7 @@ diff -up netlabel_tools-0.17/Makefile.orig netlabel_tools-0.17/Makefile
|
||||||
|
|
||||||
#
|
#
|
||||||
# targets
|
# targets
|
||||||
@@ -72,9 +73,9 @@ install: $(SUBDIRS)
|
@@ -70,15 +71,15 @@ install: $(SUBDIRS)
|
||||||
@echo "INFO: installing files in $(INSTALL_PREFIX)"
|
@echo "INFO: installing files in $(INSTALL_PREFIX)"
|
||||||
@mkdir -p $(INSTALL_SBIN_DIR)
|
@mkdir -p $(INSTALL_SBIN_DIR)
|
||||||
@mkdir -p $(INSTALL_MAN_DIR)/man8
|
@mkdir -p $(INSTALL_MAN_DIR)/man8
|
||||||
|
|
@ -25,3 +25,10 @@ diff -up netlabel_tools-0.17/Makefile.orig netlabel_tools-0.17/Makefile
|
||||||
$(INSTALL_MAN_DIR)/man8
|
$(INSTALL_MAN_DIR)/man8
|
||||||
|
|
||||||
$(VERSION_HDR): version_info
|
$(VERSION_HDR): version_info
|
||||||
|
@echo "INFO: creating the version header file"
|
||||||
|
@hdr="$(VERSION_HDR)"; \
|
||||||
|
- . version_info; \
|
||||||
|
+ . ./version_info; \
|
||||||
|
echo "/* automatically generated - do not edit */" > $$hdr; \
|
||||||
|
echo "#ifndef _VERSION_H" >> $$hdr; \
|
||||||
|
echo "#define _VERSION_H" >> $$hdr; \
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
Summary: Tools to manage the Linux NetLabel subsystem
|
Summary: Tools to manage the Linux NetLabel subsystem
|
||||||
Name: netlabel_tools
|
Name: netlabel_tools
|
||||||
Version: 0.19
|
Version: 0.19
|
||||||
Release: 6%{?dist}
|
Release: 7%{?dist}
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
URL: http://netlabel.sf.net/
|
URL: http://netlabel.sf.net/
|
||||||
|
|
@ -24,7 +24,7 @@ configure the kernel subsystem.
|
||||||
%setup -q -n %{name}-%{version}
|
%setup -q -n %{name}-%{version}
|
||||||
|
|
||||||
# Build fixes.
|
# Build fixes.
|
||||||
%patch1 -p1
|
%patch1 -p1 -b .new-hdrs
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# Don't use _smp_mflags, it's small and a hand crafted Makefile
|
# Don't use _smp_mflags, it's small and a hand crafted Makefile
|
||||||
|
|
@ -51,6 +51,10 @@ rm -rf $RPM_BUILD_ROOT
|
||||||
%attr(0644,root,root) %{_mandir}/man8/*
|
%attr(0644,root,root) %{_mandir}/man8/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jun 16 2010 Peter Vrabec <pvrabec@redhat.com> - 0.19-7
|
||||||
|
- make initscript LSB compliant (#522818)
|
||||||
|
- show version of netlabelctl and libnetlabel in help (#602577)
|
||||||
|
|
||||||
* Wed Sep 23 2009 Peter Vrabec <pvrabec@redhat.com> 0.19-6
|
* Wed Sep 23 2009 Peter Vrabec <pvrabec@redhat.com> 0.19-6
|
||||||
- make initscript LSB compliant (#522818)
|
- make initscript LSB compliant (#522818)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue