1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-08 12:01:56 +00:00

Add staging support.

This commit is contained in:
Jimmy Olgeni 2013-10-29 21:45:25 +00:00
parent 6c1d29a502
commit 904543ed09
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=332015
2 changed files with 10 additions and 44 deletions

View File

@ -1,17 +1,20 @@
# Created by: Andreas Klemm <andreas@klemm.gtn.com>
# $FreeBSD$
PORTNAME= symlinks
PORTVERSION= 1.4
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SUNSITE}
PORTNAME= symlinks
PORTVERSION= 1.4
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR= utils/file
MAINTAINER= olgeni@FreeBSD.org
COMMENT= Symbolic link maintenance utility
MAN8= symlinks.8
PLIST_FILES= bin/symlinks
PLIST_FILES= bin/symlinks \
man/man8/symlinks.8.gz
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/symlinks ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/symlinks.8 ${STAGEDIR}${MAN8PREFIX}/man/man8
NO_STAGE= yes
.include <bsd.port.mk>

View File

@ -1,37 +0,0 @@
--- Makefile.orig 2010-01-23 10:06:57.000000000 -0800
+++ Makefile 2010-01-23 10:06:43.000000000 -0800
@@ -1,15 +1,29 @@
# Makefile for symlinks
-CC = gcc
+CC?= cc
+CFLAGS?= -pipe -O
+COPY?= -c
+STRIP?= -s
+BINOWN?= root
+BINGRP?= wheel
+BINMODE?= 555
+MANOWN?= root
+MANGRP?= wheel
+MANMODE?= 444
+
+INSTALL_PROGRAM?= \
+ ${INSTALL} ${COPY} ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
+INSTALL_MAN?= \
+ ${INSTALL} ${COPY} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE}
all: symlinks
symlinks: symlinks.c
- $(CC) -Wall -Wstrict-prototypes -O2 ${CFLAGS} -o symlinks symlinks.c
+ $(CC) $(CFLAGS) -o symlinks symlinks.c
install: all symlinks.8
- install -m 755 -o root -g root symlinks /usr/local/bin
- install -m 644 -o root -g root symlinks.8 /usr/local/man/man8
+ @ ${INSTALL_PROGRAM} symlinks $(PREFIX)/bin
+ @ ${INSTALL_MAN} symlinks.8 $(PREFIX)/man/man8
clean:
- rm -f symlinks *.o core
+ @ rm -f symlinks *.o core