This website requires JavaScript.
Explore
Help
Sign In
cpet
/
freebsd-ports
Watch
1
Star
0
Fork
0
You've already forked freebsd-ports
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
1a15139d2a
freebsd-ports
/
x11
/
wrapper
/
pkg-deinstall
5 lines
101 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Add wrapper, a program that runs an X server after sanity-checking the environment and any options passed to it. It is meant to enhance security on multi-user systems running XFree86 4.x, where the ability to use a startx script is needed. If you have XFree86 3.x, do not install this, you do not need it and it will not work. PR: 21352 Submitted by: Trevor Johnson <trevor@jpj.net>
2000-09-19 12:45:40 -04:00
#!/bin/sh
Fix package deinstallation: only move X.bck over X if the former exists. Since pkg_deinstall(1) invokes the package deinstall script twice, at the second invocation X.bck is no longer there, and mv(1), even with the -f flag, returns a non-zero exit code. The shell executing the script propagates this exit code right back unto pkg_deinstall(1), which complains and aborts the package deinstallation. I wish I had not forgotten about this problem, so this could go in before DP1 was cut :( Approved by: no response from trevor@, the port maintainer
2002-04-11 07:56:55 -04:00
if [ -e ${PKG_PREFIX}/bin/X.bck ]; then
mv ${PKG_PREFIX}/bin/X.bck ${PKG_PREFIX}/bin/X
fi
Reference in New Issue
Copy Permalink