apg stable port information

Package: apg
Version: 2.2.3
Revision: 3
Description: Automated Password Generator
Homepage: http://www.adel.nursat.kz/apg/
DescDetail: <<
apg generates several random passwords. It uses several
password generation algorithms (currently two) and a
built-in pseudo random number generator.
This package only includes the standalone version.
<<
License: BSD
DocFiles: CHANGES COPYING INSTALL README THANKS TODO
Maintainer: Steffen Prohaska

Source: http://www.adel.nursat.kz/apg/download/%n-%v.tar.gz
Source-MD5: 3b3fc4f11e90635519fe627c1137c9ac

Patch: %n.patch

CompileScript: <<
make standalone
<<
InstallScript: <<
make install INSTALL_PREFIX=%i APG_BIN_DIR=/bin APG_MAN_DIR=/share/man/man1 APGD_BIN_DIR=/sbin APGD_MAN_DIR=/share/man/man8
<<
DescPort: <<
2.2.3-3: fixed install process (no need to change files to root), fixed compile warning int/long cast
2.2.3-2: fixed License class, added homepage
Patched Makefile:
- no need for -lcrypt
- fixed install target to be dependent on compile target
<<

apg stable port .patch

diff -ru2N apg-2.2.3/Makefile apg-2.2.3-patched/Makefile
--- apg-2.2.3/Makefile Thu Aug 7 17:40:30 2003
+++ apg-2.2.3-patched/Makefile Fri Dec 10 08:51:00 2004
@@ -14,5 +14,5 @@
# You should comment the line below ('LIBS= -lcrypt')for QNX RTP
# 6.1.0, OpenBSD 2.8 and above, WIN32 (+MinGW)
-LIBS = -lcrypt
+#LIBS = -lcrypt
LIBM = -lm
# Use lines below for cygwin
@@ -75,7 +75,4 @@

# ====== YOU DO NOT NEED TO MODIFY ANYTHING BELOW THIS LINE ======
-# Find group ID for user root
-FIND_GROUP = `grep '^root:' /etc/passwd | awk -F: '{ print $$4 }'`
-
PROGNAME = apg
CS_PROGNAME = apgd
@@ -110,9 +107,9 @@
strip ${BFM_PROGNAME}

-install:
+install: apg
if test -x ./apg; then \
./mkinstalldirs ${INSTALL_PREFIX}${APG_BIN_DIR}; \
./mkinstalldirs ${INSTALL_PREFIX}${APG_MAN_DIR}; \
-./install-sh -c -m 0755 -o root -g ${FIND_GROUP} ./apg ${INSTALL_PREFIX}${APG_BIN_DIR}; \
+./install-sh -c -m 0755 ./apg ${INSTALL_PREFIX}${APG_BIN_DIR}; \
./install-sh -c -m 0444 ./doc/man/apg.1 ${INSTALL_PREFIX}${APG_MAN_DIR}; \
fi
@@ -120,5 +117,5 @@
./mkinstalldirs ${INSTALL_PREFIX}${APGD_BIN_DIR}; \
./mkinstalldirs ${INSTALL_PREFIX}${APGD_MAN_DIR}; \
-./install-sh -c -m 0755 -o root -g ${FIND_GROUP} ./apgd ${INSTALL_PREFIX}${APGD_BIN_DIR}; \
+./install-sh -c -m 0755 ./apgd ${INSTALL_PREFIX}${APGD_BIN_DIR}; \
./install-sh -c -m 0444 ./doc/man/apgd.8 ${INSTALL_PREFIX}${APGD_MAN_DIR}; \
fi
@@ -126,5 +123,5 @@
./mkinstalldirs ${INSTALL_PREFIX}${APG_BIN_DIR}; \
./mkinstalldirs ${INSTALL_PREFIX}${APG_MAN_DIR}; \
-./install-sh -c -m 0755 -o root -g ${FIND_GROUP} ./apgbfm ${INSTALL_PREFIX}${APG_BIN_DIR}; \
+./install-sh -c -m 0755 ./apgbfm ${INSTALL_PREFIX}${APG_BIN_DIR}; \
./install-sh -c -m 0444 ./doc/man/apgbfm.1 ${INSTALL_PREFIX}${APG_MAN_DIR}; \
fi
diff -ru2N apg-2.2.3/apg.c apg-2.2.3-patched/apg.c
--- apg-2.2.3/apg.c Fri Sep 12 19:46:27 2003
+++ apg-2.2.3-patched/apg.c Fri Dec 10 08:56:49 2004
@@ -572,5 +572,5 @@
UINT32 prom[2] = { 0L, 0L };
UINT32 sdres = 0L;
- printf ("\nPlease enter some random data (only first %d are significant)\n", sizeof(prom));
+ printf ("\nPlease enter some random data (only first %d are significant)\n", (int)(sizeof(prom)));
seq = (char *)getpass("(eg. your old password):>");
if (strlen(seq) < sizeof(prom))

apg _unstable_ port information

Package: apg
Version: 2.2.3
Revision: 3
Description: Automated Password Generator
Homepage: http://www.adel.nursat.kz/apg/
DescDetail: <<
apg generates several random passwords. It uses several
password generation algorithms (currently two) and a
built-in pseudo random number generator.
This package only includes the standalone version.
<<
License: BSD
DocFiles: CHANGES COPYING INSTALL README THANKS TODO
Maintainer: Steffen Prohaska

Source: http://www.adel.nursat.kz/apg/download/%n-%v.tar.gz
Source-MD5: 3b3fc4f11e90635519fe627c1137c9ac

Patch: %n.patch

CompileScript: <<
make standalone
<<
InstallScript: <<
make install INSTALL_PREFIX=%i APG_BIN_DIR=/bin APG_MAN_DIR=/share/man/man1 APGD_BIN_DIR=/sbin APGD_MAN_DIR=/share/man/man8
<<
DescPort: <<
2.2.3-3: fixed install process (no need to change files to root), fixed compile warning int/long cast
2.2.3-2: fixed License class, added homepage
Patched Makefile:
- no need for -lcrypt
- fixed install target to be dependent on compile target
<<

apg _unstable_ port .patch

diff -ru2N apg-2.2.3/Makefile apg-2.2.3-patched/Makefile
--- apg-2.2.3/Makefile Thu Aug 7 17:40:30 2003
+++ apg-2.2.3-patched/Makefile Fri Dec 10 08:51:00 2004
@@ -14,5 +14,5 @@
# You should comment the line below ('LIBS= -lcrypt')for QNX RTP
# 6.1.0, OpenBSD 2.8 and above, WIN32 (+MinGW)
-LIBS = -lcrypt
+#LIBS = -lcrypt
LIBM = -lm
# Use lines below for cygwin
@@ -75,7 +75,4 @@

# ====== YOU DO NOT NEED TO MODIFY ANYTHING BELOW THIS LINE ======
-# Find group ID for user root
-FIND_GROUP = `grep '^root:' /etc/passwd | awk -F: '{ print $$4 }'`
-
PROGNAME = apg
CS_PROGNAME = apgd
@@ -110,9 +107,9 @@
strip ${BFM_PROGNAME}

-install:
+install: apg
if test -x ./apg; then \
./mkinstalldirs ${INSTALL_PREFIX}${APG_BIN_DIR}; \
./mkinstalldirs ${INSTALL_PREFIX}${APG_MAN_DIR}; \
-./install-sh -c -m 0755 -o root -g ${FIND_GROUP} ./apg ${INSTALL_PREFIX}${APG_BIN_DIR}; \
+./install-sh -c -m 0755 ./apg ${INSTALL_PREFIX}${APG_BIN_DIR}; \
./install-sh -c -m 0444 ./doc/man/apg.1 ${INSTALL_PREFIX}${APG_MAN_DIR}; \
fi
@@ -120,5 +117,5 @@
./mkinstalldirs ${INSTALL_PREFIX}${APGD_BIN_DIR}; \
./mkinstalldirs ${INSTALL_PREFIX}${APGD_MAN_DIR}; \
-./install-sh -c -m 0755 -o root -g ${FIND_GROUP} ./apgd ${INSTALL_PREFIX}${APGD_BIN_DIR}; \
+./install-sh -c -m 0755 ./apgd ${INSTALL_PREFIX}${APGD_BIN_DIR}; \
./install-sh -c -m 0444 ./doc/man/apgd.8 ${INSTALL_PREFIX}${APGD_MAN_DIR}; \
fi
@@ -126,5 +123,5 @@
./mkinstalldirs ${INSTALL_PREFIX}${APG_BIN_DIR}; \
./mkinstalldirs ${INSTALL_PREFIX}${APG_MAN_DIR}; \
-./install-sh -c -m 0755 -o root -g ${FIND_GROUP} ./apgbfm ${INSTALL_PREFIX}${APG_BIN_DIR}; \
+./install-sh -c -m 0755 ./apgbfm ${INSTALL_PREFIX}${APG_BIN_DIR}; \
./install-sh -c -m 0444 ./doc/man/apgbfm.1 ${INSTALL_PREFIX}${APG_MAN_DIR}; \
fi
diff -ru2N apg-2.2.3/apg.c apg-2.2.3-patched/apg.c
--- apg-2.2.3/apg.c Fri Sep 12 19:46:27 2003
+++ apg-2.2.3-patched/apg.c Fri Dec 10 08:56:49 2004
@@ -572,5 +572,5 @@
UINT32 prom[2] = { 0L, 0L };
UINT32 sdres = 0L;
- printf ("\nPlease enter some random data (only first %d are significant)\n", sizeof(prom));
+ printf ("\nPlease enter some random data (only first %d are significant)\n", (int)(sizeof(prom)));
seq = (char *)getpass("(eg. your old password):>");
if (strlen(seq) < sizeof(prom))