--- admin/PlamoBuild-template-20180815 2018-08-15 16:18:50.000000000 +0900 +++ plamo/03_xclassics/xlockmore/PlamoBuild.xlockmore-5.41 2019-10-14 15:58:40.000000000 +0900 @@ -1,19 +1,20 @@ #!/bin/sh ###################################################################### -url="" +url="http://www.tux.org/~bagleyd/xlock/xlockmore-5.41/xlockmore-5.41.tar.bz2" verify= digest= branch= commitid= -pkgbase= -vers= +pkgbase=xlockmore +vers=5.41 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--enable-pam --enable-use-mb --with-esound --with-lang=ja" +DOCS="`echo docs/{3d.howto,cell_automata,HACKERS.GUIDE{,.fr}}` + `echo docs/{Purify{,.sunos{4,5}},Revisions,TODO}` README" template=20180815 tmplurl=ftp://plamo.linet.gr.jp/pub/Plamo-src/admin ###################################################################### @@ -37,12 +38,27 @@ if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done apply_patches + cd $B + if [ $arch == x86_64 ] ; then + cp -p configure{,.orig} + sed -i -e '/^#define DEF_TTFONT/s@lib@lib64@g' \ + -e '/^#define DEFAULT_SOUND_DIR/s@lib@lib64@g' configure + fi + cp -p config.h.in{,.orig} + cat <<- "EOF" | patch config.h.in + 394c394 + < #undef FTGL213 + --- + > #define FTGL213 1 + EOF for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -x configure ] ; then ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ - --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} + --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} \ + XLOCKLIBS=-laudiofile \ + ac_cv_x_app_defaults='\$\{prefix\}'/$libdir/X11/app-defaults fi done fi @@ -62,17 +78,65 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make install prefix=$P/usr + make install.man prefix=$P/usr + make install.ad prefix=$P/usr fi done + sed -i '/^XLock\.sound:/s@off@on@g' $P/usr/$libdir/X11/app-defaults/XLock + if [ $arch == x86_64 ] ; then + sed -i 's@lib@lib64@g' $P/usr/$libdir/X11/app-defaults/XLock + fi + cat <<- "EOF" | patch $P/usr/$libdir/X11/app-defaults/XLock + 95,99c95,100 + < XLock.username: Name: + < XLock.password: Password: + < XLock.info: Enter password to unlock; select icon to lock. + < XLock.validate: Validating login... + < XLock.invalid: Invalid login. + --- + > !! Japanese by: YOKOTA Hiroshi + > XLock.username: ログイン名: + > XLock.password: パスワード: + > XLock.info: Enter パスワードを入力して下さい。アイコンをクリックすると再ロックします。 + > XLock.validate: パスワード検査中... + > XLock.invalid: パスワードが違います。 + 101c102 + < XLock.logoutButtonLabel: Click here to logout + --- + > XLock.logoutButtonLabel: ここを押すとログアウトします + 103,106c104,107 + < You may log out this session if no terminals are available.\n\ + < WARNING: This will crash any open applications that the user\n\ + < has running. You should try to contact the user if possible\n\ + < before logging them out. + --- + > ターミナルから X を起動していない場合はセッションの終了が出来ます。 + > XLock.logoutFailedString: \ + > ログアウトに失敗しました。\n\ + > このユーザーは自動ログアウト出来ません。 + EOF + install -m 644 xmlock/XmLock-jp.ad $P/usr/$libdir/X11/app-defaults/XmLock + install -d $P/usr/$libdir/X11/xlock/sounds + install -m 644 sounds/*.au $P/usr/$libdir/X11/xlock/sounds touch $W/i.et cd $W TZ=UTC find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date -u '+%m%d0000'` {} \; compress + install -d $P/etc/pam.d + cat <<- "EOF" > $P/etc/pam.d/xlock + #%PAM-1.0 + auth include plamo-default + EOF + touch -t `date '+%m%d0900'` $P/etc/pam.d/xlock setup_docdir convert_links tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir/X11/app-defaults | tail -n+2` + tar rvpf $pkg.tar -C $P usr/share/xlock + tar rvpf $pkg.tar -C $P usr/$libdir/X11/xlock + tar rvpf $pkg.tar -C $P etc/pam.d/xlock tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | tail -n+2` tar rvpf $pkg.tar -C $P usr/share/doc/$src TZ=UTC touch -t `date -u '+%m%d0000'` $pkg.tar