1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00

X key lock in the Japanese language.

PR:		ports/4061
Submitted by:	NAKAMURA Kazushi nkazushi@highway.or.jp
This commit is contained in:
David E. O'Brien 1998-02-28 23:29:19 +00:00
parent 20b9478281
commit 499fa575e7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=9968
6 changed files with 88 additions and 0 deletions

37
japanese/xklock/Makefile Normal file
View File

@ -0,0 +1,37 @@
# New ports collection makefile for: xklock
# Version required: 2.54
# Date created: 20 April 1997
# Whom: nkazushi@highway.or.jp
#
# $Id$
#
DISTNAME= xklock-2.7
PKGNAME= ja-xklock-2.7.1
CATEGORIES= x11 japanese
MASTER_SITES= ftp://ftp.tk.mesh.ad.jp/pub/Linux/JE-sources/X/ \
ftp://ftp.biol.tsukuba.ac.jp/pub/X/clients/ \
ftp://ftp.kagoshima-u.ac.jp/pub1/PC/linux-j/JE-sources/X/ \
ftp://ftp.hitachi.co.jp/pub/linux/colias/pub/linux/JE-0.9.6/sources/X/
PATCH_SITES= ${MASTER_SITES}
PATCHFILES= xklock-2.7+lx.diff.gz
PATCH_DIST_STRIP= -p1
MAINTAINER= nkazushi@highway.or.jp
WRKSRC= ${WRKDIR}
USE_X11= yes
pre-configure:
@${MV} ${WRKDIR}/jnames.c ${WRKDIR}/jnames.c.in
@${SED} -e "s:/usr/local:${PREFIX}:" ${WRKDIR}/jnames.c.in \
> ${WRKDIR}/jnames.c
@${MV} ${WRKDIR}/xklock.h ${WRKDIR}/xklock.h.in
@${SED} -e "s:/usr/local:${PREFIX}:" ${WRKDIR}/xklock.h.in \
> ${WRKDIR}/xklock.h
post-install:
${TOUCH} ${PREFIX}/lib/jnames
.include <bsd.port.mk>

2
japanese/xklock/distinfo Normal file
View File

@ -0,0 +1,2 @@
MD5 (xklock-2.7.tar.gz) = c3188628d5bc3df22f6bdfc468c8d27c
MD5 (xklock-2.7+lx.diff.gz) = 8114e3bd0843410bcf0ca42dda310b0e

View File

@ -0,0 +1,42 @@
--- Makefile- Sun Apr 20 21:20:12 1997
+++ Makefile Mon Apr 21 18:29:49 1997
@@ -4,9 +4,9 @@
#
CC = cc
-C_FLAG = -fwritable-strings -DSHADOW -O2 #-DDEBUG -g
+C_FLAG = -fwritable-strings -O2 -m486 -I${PREFIX}/include #-DDEBUG -g
RM_FLAG = -f
-LIB = -lX11 -lXmu -lshadow -lXpm
+LIB = -L${PREFIX}/lib -lX11 -lXmu -lXpm -lcrypt
EXE = xklock
OBJ1 = xklock.o
OBJ2 = jnames.o
@@ -18,14 +18,14 @@
DOC = xklock.doc readme.doc
TAR = xklock.tar
MAKE = Makefile Makefile.BE
-BIN_DIR = /usr/X386/bin
+BIN_DIR = ${PREFIX}/bin
all:$(EXE)
$(EXE):$(OBJ)
$(CC) $(C_FLAG) -o $@ $(OBJ) $(LIB)
-$(OBJ1):$(SRC1) $(INC)
+$(OBJ1):$(SRC1)
$(CC) $(C_FLAG) -c $(SRC1)
$(OBJ2):$(SRC2)
--- xklock.c- Mon Apr 21 20:25:29 1997
+++ xklock.c Mon Apr 21 20:23:36 1997
@@ -74,7 +74,7 @@
#ifdef SHADOW
static struct spwd *user_spwd;
#endif
-static char root_password[32], user_password[32];
+static char root_password[_PASSWORD_LEN], user_password[_PASSWORD_LEN];
static char *option_name[] = {
"-d", /* 0 */
"-foreground", /* 1 */

View File

@ -0,0 +1 @@
X key lock in the Japanese language.

View File

@ -0,0 +1,3 @@
X key lock in the Japanese language.
It needs file:/usr/X11/lib/jnames. If this file is not exist
yet, please touch this file to create it.

View File

@ -0,0 +1,3 @@
bin/xklock
@exec touch %D/lib/jnames
@comment @unexec rm %D/lib/jnames