作者style520 (XXYY)
看板FreeBSD
标题[讨论] joe-3.5,1 ports 是不是有问题?
时间Mon Jan 1 21:38:35 2007
# pkg_create -b joe-3.5,1
tar: etc/joe/joerc.dist: Cannot stat: No such file or directory
# pkg_info -L joe-3.5,1
发现 有 /usr/local/etc/joe/joerc.dist
没有 /usr/local/etc/joe/joerc
以下是 make install 的 部分output
-----
test -z "/usr/local/etc/joe" || /usr/ports/editors/joe/work/joe-3.5/install-sh -d "/usr/local/etc/joe"
install -o root -g wheel -m 444 'joerc' '/usr/local/etc/joe/joerc'
^^^^^^^^^^^ ??
install -o root -g wheel -m 444 'jicerc.ru' '/usr/local/etc/joe/jicerc.ru'
install -o root -g wheel -m 444 'jmacsrc' '/usr/local/etc/joe/jmacsrc'
install -o root -g wheel -m 444 'jstarrc' '/usr/local/etc/joe/jstarrc'
install -o root -g wheel -m 444 'rjoerc' '/usr/local/etc/joe/rjoerc'
install -o root -g wheel -m 444 'jpicorc' '/usr/local/etc/joe/jpicorc'
install -o root -g wheel -m 444 'ftyperc' '/usr/local/etc/joe/ftyperc'
-----
应该要 install joerc.dist 到 /usr/local/etc/joe/ 才对吧
以下是 部分Makefile
-----
post-install:
.for file in jmacsrc jpicorc jstarrc rjoerc joerc
.if !exists(${PREFIX}/etc/${PORTNAME}/${file})
@${CP} ${PREFIX}/etc/${PORTNAME}/${file} ${PREFIX}/etc/${PORTNAME}/${file}.dist
.endif
.endfor
-----
if rc 不存在, then copy rc to rc.dist ,写反了吧?
应该改成这样才对吧
.for file in jmacsrc jpicorc jstarrc rjoerc joerc
.if !exists(${PREFIX}/etc/${PORTNAME}/${file})
@${CP} ${PREFIX}/etc/${PORTNAME}/${file}.dist ${PREFIX}/etc/${PORTNAME}/${file}
.endif
.endfor
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.245.58