diff --git a/neetbsd.sh b/neetbsd.sh index 742f91b..18f713c 100644 --- a/neetbsd.sh +++ b/neetbsd.sh @@ -27,7 +27,7 @@ echo 'Installing software for NEETBSD' # BINARY PACKAGES via pkgin echo 'Installing binary packages via the root user using su' echo 'This operation might take a long moment to complete!!' -su root -c 'pkgin install enlightenment firefox-esr xfe grafx2 dillo mumble psi kvirc lxqt-archiver stalonetray htop mc ncdu ufetch wget' +su root -c 'pkgin -y install enlightenment firefox-esr xfe grafx2 dillo mumble psi kvirc lxqt-archiver stalonetray htop mc ncdu ufetch wget' # FIX-ME: uncertain packages are left out - xine/mpv(?) and [xterm](terminology) # COMPILATION via various utilities @@ -40,7 +40,7 @@ else echo ' xdiskusage version 1.60 - please check if this is the latest!' wget --quiet -O - https://xdiskusage.sourceforge.net/ | grep 'Download source' sleep 5 # Some time to read the above warning and result - su root -c 'pkgin install fltk-1.3.9' # FLTK is the sole dependency + su root -c 'pkgin -y install fltk-1.3.9' # FLTK is the sole dependency wget https://xdiskusage.sourceforge.net/xdiskusage-1.60.tgz # Download src mv xdiskusage-1.60.tgz /tmp # This operation shall be done in a tmp area cd /tmp @@ -49,7 +49,7 @@ else sed -i 's/(__APPLE__)/(__NetBSD__)/g' xdiskusage.C # sed replacing 'APPLE' with 'NetBSD' # ^ xdiskusage now acts like the FreeBSD version - probably hacky, but it seems functional # Configure, compile, install, clean - ./configure && make CPPFLAGS=-I/usr/pkg/include:/usr/X11R7/include && su root -c 'make install clean' + ./configure && make CPPFLAGS=-I/usr/pkg/include CPPFLAGS+=-I/usr/X11R7/include && su root -c 'make install clean' # .desktop su root -c 'printf "[Desktop Entry]\nType=Application\nName=xdiskusage\nComment=Graphical disk usage program\nTerminal=false\nTryExec=xdiskusage\nExec=/usr/local/bin/xdiskusage\nCategories=Utility" > /usr/share/applications/xdiskusage.desktop' cd .. # Go back to /tmp