From nobody@FreeBSD.org  Tue Sep 21 06:40:43 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 117811065670
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 21 Sep 2010 06:40:43 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id DB2FF8FC17
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 21 Sep 2010 06:40:42 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o8L6egc8084856
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 21 Sep 2010 06:40:42 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o8L6egt2084855;
	Tue, 21 Sep 2010 06:40:42 GMT
	(envelope-from nobody)
Message-Id: <201009210640.o8L6egt2084855@www.freebsd.org>
Date: Tue, 21 Sep 2010 06:40:42 GMT
From: Derrick Brashear <shadow@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: csup GNUmakefile missing
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         150771
>Category:       bin
>Synopsis:       [patch] csup(1) GNUmakefile missing
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 21 06:50:01 UTC 2010
>Closed-Date:    
>Last-Modified:  Sun Sep 26 21:09:30 UTC 2010
>Originator:     Derrick Brashear
>Release:        n/a
>Organization:
OpenAFS
>Environment:
Darwin scully-2.local 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov  3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386 i386

>Description:
Documentation references "GNUmakefile", which seems to have been dropped on the floor.
>How-To-Repeat:
..
>Fix:
I pulled the file out and updated it. It's attached. 

Patch attached with submission follows:

# A simple gmake Makefile, to be used on Linux and Darwin.  It shouldn't
# be used elsewhere because it assumes that the target system doesn't
# support BSD extended file flags.
#
# $FreeBSD: src/contrib/csup/GNUmakefile,v 1.1.1.2.2.1 2006/05/15 13:40:39 mux Exp $
# $MidnightBSD: src/contrib/csup/GNUmakefile,v 1.1 2006/12/27 01:28:42 laffer1 Exp $
#

PREFIX?=/usr/local
OWNER?=	0
GROUP?=	0

UNAME=	$(shell uname -s)

SRCS=	attrstack.c auth.c config.c detailer.c diff.c fattr.c fixups.c \
	fnmatch.c globtree.c idcache.c keyword.c lex.rcs.c lister.c main.c \
	misc.c mux.c pathcomp.c parse.c proto.c rcsfile.c rcsparse.c \
	rsyncfile.c status.c stream.c threads.c token.c updater.c
OBJS=	$(SRCS:.c=.o)

WARNS=	-Wall -W -Wno-unused-parameter -Wmissing-prototypes -Wpointer-arith \
	-Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow \
	-Wcast-align -Wunused-parameter -Wchar-subscripts -Winline \
	-Wnested-externs -Wredundant-decls -Wno-format-y2k

CFLAGS+= -g -O -pipe -DNDEBUG -I$(PREFIX)/include
ifeq ($(UNAME), Linux)
	CFLAGS+= -D_XOPEN_SOURCE -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
endif
ifeq ($(UNAME), Darwin)
	CFLAGS+= -DHAVE_FFLAGS
endif
CFLAGS+= $(WARNS)
LDFLAGS= -L$(PREFIX)/lib -lcrypto -lz -lpthread

.PHONY: all clean install

all: csup csup.1.gz

csup: $(OBJS)
	$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)

config.c: parse.h

token.c: token.l

parse.c: parse.y

parse.h: parse.c

clean:
	rm -f csup $(OBJS) parse.c parse.h token.c csup.1.gz

%.o: %.c
	$(CC) $(CFLAGS) -c -o $@ $<

%.c: %.y
	$(YACC) -d -o $@ $<

csup.1.gz: csup.1
	gzip -cn $< > $@

install: csup csup.1.gz
	install -s -o $(OWNER) -g $(GROUP) csup $(PREFIX)/bin
	install -s -o $(OWNER) -g $(GROUP) csup.1.gz $(PREFIX)/share/man/man1

>Release-Note:
>Audit-Trail:
>Unformatted:
