- Restore to 1.15 to fix the index

Pointy hat to:	pgollucci
This commit is contained in:
Martin Wilke 2009-02-05 20:33:53 +00:00
parent a633a5cc50
commit 9b1368fe9b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=227683
3 changed files with 49 additions and 6 deletions

View file

@ -6,14 +6,18 @@
#
PORTNAME= pwgen
PORTVERSION= 2.06
PORTVERSION= 1.15
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= sysutils
MASTER_SITES= SF
MASTER_SITES= http://www.tricknology.org/ports/
MAINTAINER= oddbjorn@tricknology.org
COMMENT= A simple password generator
GNU_CONFIGURE= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-1
MAKE_ENV= CPPFLAGS="${CPPFLAGS}" \
LDFLAGS="${LDFLAGS}"
MAN1= pwgen.1
PLIST_FILES= bin/pwgen

View file

@ -1,3 +1,3 @@
MD5 (pwgen-2.06.tar.gz) = 935aebcbe610fbc9de8125e7b7d71297
SHA256 (pwgen-2.06.tar.gz) = 61598c9e3a0f7eb2e7367d4ecc71522c4f16a7d41ed31db29e3afee8d9843454
SIZE (pwgen-2.06.tar.gz) = 30952
MD5 (pwgen-1.15.tar.gz) = 311724e3ce09155694191563be5543e9
SHA256 (pwgen-1.15.tar.gz) = fb50a42bf3bf9608f5d3e5b72a414e05df13ff1f03945549cb44fe454c81dbd4
SIZE (pwgen-1.15.tar.gz) = 14839

View file

@ -0,0 +1,39 @@
--- Makefile.orig Tue Jan 4 22:54:58 2000
+++ Makefile Sun Jul 6 20:15:32 2003
@@ -6,17 +6,17 @@
OPTS = -DALLBYOPTS -DRAND48 -DDEBIAN
# Standard items
-CC = gcc
-CFLAGS = -O3
-LD = cc
-#LDFLAGS = -g
+CC ?= gcc
+CFLAGS += ${CPPFLAGS}
+LD = ${CC}
LIBS = -lm
INSTALL = install -s
INFLAGS =
# Where to install
-DESTDIR = /usr/local/bin
-MANDIR = /usr/local/man/man1
+PREFIX ?= /usr/local
+DESTDIR = ${PREFIX}/bin
+MANDIR = ${PREFIX}/man/man1
# End configuration section
@@ -27,10 +27,8 @@
./pwgen 8 20
install: all
- $(INSTALL) pwgen $(DESTDIR)
- install pwgen.1 $(MANDIR)
- chmod 555 $(DESTDIR)/pwgen
- chmod 444 $(MANDIR)/pwgen.1
+ ${BSD_INSTALL_PROGRAM} pwgen $(DESTDIR)
+ ${BSD_INSTALL_MAN} pwgen.1 $(MANDIR)
spwgen: spwgen.o
$(LD) $(LDFLAGS) -o spwgen spwgen.o $(LIBS)