1
0
forked from ports/opt

nvidia, openbox, opencdk, openntpd: initial import to opt

This commit is contained in:
Matt Housh 2005-11-09 22:41:07 +00:00
parent 539ca80f40
commit c5cba34cc3
18 changed files with 419 additions and 0 deletions

35
nvidia/.footprint Normal file
View File

@ -0,0 +1,35 @@
drwxr-xr-x root/root lib/
drwxr-xr-x root/root lib/modules/
drwxr-xr-x root/root lib/modules/<kernel-version>/
drwxr-xr-x root/root lib/modules/<kernel-version>/kernel/
drwxr-xr-x root/root lib/modules/<kernel-version>/kernel/drivers/
drwxr-xr-x root/root lib/modules/<kernel-version>/kernel/drivers/video/
-rw-r--r-- root/root lib/modules/<kernel-version>/kernel/drivers/video/nvidia.ko
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/X11R6/
drwxr-xr-x root/root usr/X11R6/lib/
-rwxr-xr-x root/root usr/X11R6/lib/libXvMCNVIDIA.a
-rwxr-xr-x root/root usr/X11R6/lib/libXvMCNVIDIA.so.1.0.7676
drwxr-xr-x root/root usr/X11R6/lib/modules/
drwxr-xr-x root/root usr/X11R6/lib/modules/drivers/
-rwxr-xr-x root/root usr/X11R6/lib/modules/drivers/nvidia_drv.o
drwxr-xr-x root/root usr/X11R6/lib/modules/extensions/
lrwxrwxrwx root/root usr/X11R6/lib/modules/extensions/libglx.so -> libglx.so.1.0.7676
-rwxr-xr-x root/root usr/X11R6/lib/modules/extensions/libglx.so.1.0.7676
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/nvidia-settings
drwxr-xr-x root/root usr/include/
drwxr-xr-x root/root usr/include/nvidia/
drwxr-xr-x root/root usr/include/nvidia/GL/
-r--r--r-- root/root usr/include/nvidia/GL/gl.h
-r--r--r-- root/root usr/include/nvidia/GL/glext.h
-r--r--r-- root/root usr/include/nvidia/GL/glx.h
-r--r--r-- root/root usr/include/nvidia/GL/glxext.h
drwxr-xr-x root/root usr/lib/
-rw-r--r-- root/root usr/lib/libGL.la
lrwxrwxrwx root/root usr/lib/libGL.so -> libGL.so.1.0.7676
-rwxr-xr-x root/root usr/lib/libGL.so.1.0.7676
-rwxr-xr-x root/root usr/lib/libGLcore.so.1.0.7676
-rwxr-xr-x root/root usr/lib/libnvidia-tls.so.1.0.7676
drwxr-xr-x root/root usr/lib/tls/
-rwxr-xr-x root/root usr/lib/tls/libnvidia-tls.so.1.0.7676

2
nvidia/.md5sum Normal file
View File

@ -0,0 +1,2 @@
2474c5513006668b0fba401e042dc009 NVIDIA-Linux-x86-1.0-7676-pkg0.run
30639de943a63b41fb363c665e3e094f nvidia-1.0-7676-makefiles.patch

48
nvidia/Pkgfile Normal file
View File

@ -0,0 +1,48 @@
# $Id: Pkgfile,v 1.15 2005/08/26 14:13:41 jaeger Exp $
# Description: nVIDIA Linux Display Driver
# URL: http://www.nvidia.com/
# Maintainer: Matt Housh, jaeger at morpheus dot net
# Depends on: x11
name=nvidia
version=1.0-7676
release=1
source=(http://download.nvidia.com/XFree86/Linux-x86/$version/NVIDIA-Linux-x86-$version-pkg0.run \
$name-$version-makefiles.patch)
build() {
sh NVIDIA-Linux-x86-$version-pkg0.run --extract-only
cd NVIDIA-Linux-x86-$version-pkg0
# patch Makefiles for normal users and no load during build
patch -p1 < $SRC/$name-$version-makefiles.patch
# create directories the Makefile expects
mkdir -p $PKG/usr/lib \
$PKG/usr/X11R6/lib/modules/drivers \
$PKG/usr/X11R6/lib/modules/extensions \
$PKG/usr/bin
# build/install libraries
make ROOT=$PKG install
install -m 0644 usr/lib/libGL.la $PKG/usr/lib/
sed -i -e 's|__LIBGL_PATH__|/usr/lib|' $PKG/usr/lib/libGL.la
# remove the documentation
rm -rf $PKG/usr/share
# copy includes
mkdir -p $PKG/usr/include/nvidia
cp -r usr/include/GL $PKG/usr/include/nvidia/
# install settings program
install -m 0755 usr/bin/nvidia-settings $PKG/usr/bin/
# build the module
cd usr/src/nv
IGNORE_CC_MISMATCH=1 make -f Makefile.kbuild module
# install it
install -m 0644 -D nvidia.ko \
$PKG/lib/modules/`uname -r`/kernel/drivers/video/nvidia.ko
}

37
nvidia/README Normal file
View File

@ -0,0 +1,37 @@
$Id: README,v 1.5 2005/03/11 21:55:52 jaeger Exp $
README for nvidia 1.0-6629+
**** IMPORTANT ****
The POST-INSTALL only needs to be run *ONCE* after installing
the nvidia port. It is *NOT REQUIRED* when upgrading the port
if it has been run once when the port was originally installed.
**** IMPORTANT ****
*** NOTE for nvidia with udev ***
If using udev, add your user to the "video" group to be able to
use the nvidia devices required for 3d to function properly.
POST-INSTALL
Rename /usr/X11R6/lib/libGL.so.1.2 to something else, such
as libGL_so_1_2 and run /sbin/ldconfig. GL applications
should then use the nvidia-installed /usr/lib/libGL.so
instead. Rename /usr/X11R6/lib/modules/extensions/libGLcore.a
and libglx.a to something else, such as libGLcore.a.orig and
libglx.a.orig.
nvhelper.sh will do this for you (./nvhelper.sh --install)
POST-REMOVE
Rename /usr/X11R6/lib/libGL_so_1_2 (or whatever you called
it) to libGL.so.1.2 and run /sbin/ldconfig. Also restore
libglx.a and libGLcore.a in /usr/X11R6/lib/modules/extensions.
nvhelper.sh will do this for you (./nvhelper.sh --restore)

44
nvidia/nvhelper.sh Normal file
View File

@ -0,0 +1,44 @@
#!/bin/bash
# $Id: nvhelper.sh,v 1.1.1.1 2004/08/17 20:01:42 crux Exp $
echo ""
echo "nvhelper.sh - facilitate renaming/restoring of libGL.so.1.2"
echo ""
case "$1" in
--install)
if [ ! -f /usr/X11R6/lib/libGL.so.1.2 ]
then
echo "/usr/X11R6/lib/libGL.so.1.2 doesn't exist! Exiting..."
exit 1
fi
(cd /usr/X11R6/lib
mv libGL.so.1.2 libGL_so_1_2
mv libGL.a libGL_a
cd modules/extensions
mv libGLcore.a libGLcore.a.orig
mv libglx.a libglx.a.orig
/sbin/ldconfig)
;;
--restore)
if [ ! -f /usr/X11R6/lib/libGL_so_1_2 ]
then
echo "/usr/X11R6/lib/libGL_so_1_2 doesn't exist! Exiting..."
exit 1
fi
(cd /usr/X11R6/lib
mv libGL_so_1_2 libGL.so.1.2
mv libGL_a libGL.a
cd modules/extensions
mv libGLcore.a.orig libGLcore.a
mv libglx.a.orig libglx.a
/sbin/ldconfig)
;;
*)
echo "Unrecognized option, please use --install or --restore."
exit 0
;;
esac
echo "done."

View File

@ -0,0 +1,49 @@
diff -urN NVIDIA-Linux-x86-1.0-7676-pkg0.orig/Makefile NVIDIA-Linux-x86-1.0-7676-pkg0/Makefile
--- NVIDIA-Linux-x86-1.0-7676-pkg0.orig/Makefile 2005-07-29 15:30:44.000000000 -0500
+++ NVIDIA-Linux-x86-1.0-7676-pkg0/Makefile 2005-08-26 08:36:42.736205664 -0500
@@ -95,4 +95,4 @@
@echo -n " "
cp -r usr/share/doc/* ${DOCDIR}
@echo -n " "
- /sbin/ldconfig
+ #/sbin/ldconfig
diff -urN NVIDIA-Linux-x86-1.0-7676-pkg0.orig/usr/src/nv/Makefile.kbuild NVIDIA-Linux-x86-1.0-7676-pkg0/usr/src/nv/Makefile.kbuild
--- NVIDIA-Linux-x86-1.0-7676-pkg0.orig/usr/src/nv/Makefile.kbuild 2005-07-29 15:30:43.000000000 -0500
+++ NVIDIA-Linux-x86-1.0-7676-pkg0/usr/src/nv/Makefile.kbuild 2005-08-26 08:36:42.736205664 -0500
@@ -255,10 +255,10 @@
#
suser-sanity-check:
- @if ! $(CONFTEST) suser_sanity_check; then exit 1; fi
+ #@if ! $(CONFTEST) suser_sanity_check; then exit 1; fi
rmmod-sanity-check:
- @if ! $(CONFTEST) rmmod_sanity_check; then exit 1; fi
+ #@if ! $(CONFTEST) rmmod_sanity_check; then exit 1; fi
gcc-sanity-check:
@if ! $(CONFTEST) cc_sanity_check full_output; then exit 1; fi
@@ -293,9 +293,9 @@
#
module-install: suser-sanity-check module
- @mkdir -p $(MODULE_ROOT)/video; \
- install -m 0664 -o root -g root $(MODULE_OBJECT) $(MODULE_ROOT)/video; \
- PATH="$(PATH):/bin:/sbin" depmod -ae;
+ #@mkdir -p $(MODULE_ROOT)/video; \
+ #install -m 0664 -o root -g root $(MODULE_OBJECT) $(MODULE_ROOT)/video; \
+ #PATH="$(PATH):/bin:/sbin" depmod -ae;
#
# This target builds, then installs, then creates device nodes and inserts
@@ -303,8 +303,8 @@
#
package-install: module-install rmmod-sanity-check
- PATH="$(PATH):/bin:/sbin" modprobe $(MODULE_NAME) && \
- echo "$(MODULE_OBJECT) installed successfully.";
+ #PATH="$(PATH):/bin:/sbin" modprobe $(MODULE_NAME) && \
+ #echo "$(MODULE_OBJECT) installed successfully.";
#
# Build an object file suitable for further processing by the installer and

76
openbox/.footprint Normal file
View File

@ -0,0 +1,76 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/gnome-panel-control
-rwxr-xr-x root/root usr/bin/kdetrayproxy
-rwxr-xr-x root/root usr/bin/openbox
drwxr-xr-x root/root usr/etc/
drwxr-xr-x root/root usr/etc/xdg/
drwxr-xr-x root/root usr/etc/xdg/openbox/
-rw-r--r-- root/root usr/etc/xdg/openbox/menu.xml
-rw-r--r-- root/root usr/etc/xdg/openbox/rc.xml
drwxr-xr-x root/root usr/include/
drwxr-xr-x root/root usr/include/openbox/
drwxr-xr-x root/root usr/include/openbox/3.3/
drwxr-xr-x root/root usr/include/openbox/3.3/openbox/
-rw-r--r-- root/root usr/include/openbox/3.3/openbox/parse.h
-rw-r--r-- root/root usr/include/openbox/3.3/openbox/render.h
-rw-r--r-- root/root usr/include/openbox/3.3/openbox/theme.h
-rw-r--r-- root/root usr/include/openbox/3.3/openbox/version.h
drwxr-xr-x root/root usr/lib/
-rw-r--r-- root/root usr/lib/libobparser.a
-rwxr-xr-x root/root usr/lib/libobparser.la
lrwxrwxrwx root/root usr/lib/libobparser.so -> libobparser.so.0.2.1
lrwxrwxrwx root/root usr/lib/libobparser.so.0 -> libobparser.so.0.2.1
-rwxr-xr-x root/root usr/lib/libobparser.so.0.2.1
-rw-r--r-- root/root usr/lib/libobrender.a
-rwxr-xr-x root/root usr/lib/libobrender.la
lrwxrwxrwx root/root usr/lib/libobrender.so -> libobrender.so.0.2.1
lrwxrwxrwx root/root usr/lib/libobrender.so.0 -> libobrender.so.0.2.1
-rwxr-xr-x root/root usr/lib/libobrender.so.0.2.1
drwxr-xr-x root/root usr/lib/pkgconfig/
-rw-r--r-- root/root usr/lib/pkgconfig/obparser-3.0.pc
-rw-r--r-- root/root usr/lib/pkgconfig/obrender-3.0.pc
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/gnome/
drwxr-xr-x root/root usr/share/gnome/wm-properties/
-rw-r--r-- root/root usr/share/gnome/wm-properties/openbox.desktop
drwxr-xr-x root/root usr/share/openbox/
-rw-r--r-- root/root usr/share/openbox/menu.xsd
-rw-r--r-- root/root usr/share/openbox/rc.xsd
-rwxr-xr-x root/root usr/share/openbox/themeupdate.py
drwxr-xr-x root/root usr/share/pixmaps/
-rw-r--r-- root/root usr/share/pixmaps/openbox.png
drwxr-xr-x root/root usr/share/themes/
drwxr-xr-x root/root usr/share/themes/Allegro/
drwxr-xr-x root/root usr/share/themes/Allegro/openbox-3/
-rw-r--r-- root/root usr/share/themes/Allegro/openbox-3/bullet.xbm
-rw-r--r-- root/root usr/share/themes/Allegro/openbox-3/themerc
drwxr-xr-x root/root usr/share/themes/Artwiz/
drwxr-xr-x root/root usr/share/themes/Artwiz/openbox-3/
-rw-r--r-- root/root usr/share/themes/Artwiz/openbox-3/themerc
drwxr-xr-x root/root usr/share/themes/Blah41/
drwxr-xr-x root/root usr/share/themes/Blah41/openbox-3/
-rw-r--r-- root/root usr/share/themes/Blah41/openbox-3/themerc
drwxr-xr-x root/root usr/share/themes/Om4Ob/
drwxr-xr-x root/root usr/share/themes/Om4Ob/openbox-3/
-rw-r--r-- root/root usr/share/themes/Om4Ob/openbox-3/close.xbm
-rw-r--r-- root/root usr/share/themes/Om4Ob/openbox-3/close_hover.xbm
-rw-r--r-- root/root usr/share/themes/Om4Ob/openbox-3/desk.xbm
-rw-r--r-- root/root usr/share/themes/Om4Ob/openbox-3/desk_hover.xbm
-rw-r--r-- root/root usr/share/themes/Om4Ob/openbox-3/desk_toggled.xbm
-rw-r--r-- root/root usr/share/themes/Om4Ob/openbox-3/iconify.xbm
-rw-r--r-- root/root usr/share/themes/Om4Ob/openbox-3/iconify_hover.xbm
-rw-r--r-- root/root usr/share/themes/Om4Ob/openbox-3/iconify_pressed.xbm
-rw-r--r-- root/root usr/share/themes/Om4Ob/openbox-3/max.xbm
-rw-r--r-- root/root usr/share/themes/Om4Ob/openbox-3/max_disabled.xbm
-rw-r--r-- root/root usr/share/themes/Om4Ob/openbox-3/max_hover.xbm
-rw-r--r-- root/root usr/share/themes/Om4Ob/openbox-3/max_pressed.xbm
-rw-r--r-- root/root usr/share/themes/Om4Ob/openbox-3/max_toggled.xbm
-rw-r--r-- root/root usr/share/themes/Om4Ob/openbox-3/shade.xbm
-rw-r--r-- root/root usr/share/themes/Om4Ob/openbox-3/shade_disabled.xbm
-rw-r--r-- root/root usr/share/themes/Om4Ob/openbox-3/shade_hover.xbm
-rw-r--r-- root/root usr/share/themes/Om4Ob/openbox-3/shade_toggled.xbm
-rw-r--r-- root/root usr/share/themes/Om4Ob/openbox-3/themerc
drwxr-xr-x root/root usr/share/themes/TheBear/
drwxr-xr-x root/root usr/share/themes/TheBear/openbox-3/
-rw-r--r-- root/root usr/share/themes/TheBear/openbox-3/themerc

1
openbox/.md5sum Normal file
View File

@ -0,0 +1 @@
1ff100d27cc1f47dadebb884a696dac3 openbox-3.3-rc2.tar.gz

18
openbox/Pkgfile Normal file
View File

@ -0,0 +1,18 @@
# $Id: Pkgfile,v 1.5 2005/10/19 00:30:11 jaeger Exp $
# Description: Openbox - fast, lightweight, standards-compliant window manager
# URL: http://www.icculus.org/openbox/
# Maintainer: Matt Housh, jaeger at morpheus dot net
# Depends on: x11, freetype, glib, expat, libxml2
name=openbox
version=3.3-rc2
release=1
source=(http://www.icculus.org/$name/releases/$name-$version.tar.gz)
build() {
cd $name-$version
./configure --prefix=/usr \
--disable-nls
make
make DESTDIR=$PKG install
}

11
opencdk/.footprint Normal file
View File

@ -0,0 +1,11 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/opencdk-config
drwxr-xr-x root/root usr/include/
-rw-r--r-- root/root usr/include/opencdk.h
drwxr-xr-x root/root usr/lib/
-rw-r--r-- root/root usr/lib/libopencdk.a
-rwxr-xr-x root/root usr/lib/libopencdk.la
lrwxrwxrwx root/root usr/lib/libopencdk.so -> libopencdk.so.8.0.3
lrwxrwxrwx root/root usr/lib/libopencdk.so.8 -> libopencdk.so.8.0.3
-rwxr-xr-x root/root usr/lib/libopencdk.so.8.0.3

1
opencdk/.md5sum Normal file
View File

@ -0,0 +1 @@
766560f9ed6c6a64a2820364b1e6065c opencdk-0.5.7.tar.gz

17
opencdk/Pkgfile Normal file
View File

@ -0,0 +1,17 @@
# $Id: Pkgfile,v 1.4 2005/09/14 17:49:12 jaeger Exp $
# Description: Open Crypto Development Kit
# URL: http://www.gnu.org/software/gnutls/
# Maintainer: Matt Housh, jaeger at morpheus dot net
# Depends on: libgcrypt
name=opencdk
version=0.5.7
release=1
source=(http://ftp.gnupg.org/gcrypt/alpha/gnutls/$name/$name-$version.tar.gz)
build() {
cd $name-$version
./configure --prefix=/usr
make
make DESTDIR=$PKG install
}

14
openntpd/.footprint Normal file
View File

@ -0,0 +1,14 @@
drwxr-xr-x root/root etc/
-rw-r--r-- root/root etc/ntpd.conf
drwxr-xr-x root/root etc/rc.d/
-rwxr-xr-x root/root etc/rc.d/ntpd
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man5/
-rw-r--r-- root/root usr/man/man5/ntpd.conf.5.gz
drwxr-xr-x root/root usr/man/man8/
-rw-r--r-- root/root usr/man/man8/ntpd.8.gz
drwxr-xr-x root/root usr/sbin/
-rwxr-xr-x root/root usr/sbin/ntpd
drwxr-xr-x root/root var/
drwxr-xr-x root/root var/empty/

2
openntpd/.md5sum Normal file
View File

@ -0,0 +1,2 @@
8e083e4914b691860a65619bfeda97e9 ntpd
10ed8eefd760e5819efcf3277b118f47 openntpd-3.7p1.tar.gz

20
openntpd/Pkgfile Normal file
View File

@ -0,0 +1,20 @@
# $Id: Pkgfile,v 1.4 2005/09/06 20:46:53 jaeger Exp $
# Description: portable version of openbsd's ntpd implementation
# URL: http://www.openntpd.org/
# Maintainer: Matt Housh, jaeger at morpheus dot net
name=openntpd
version=3.7
release=1
source=(ftp://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/$name-${version}p$release.tar.gz \
ntpd)
build() {
install -D -m 0755 ntpd $PKG/etc/rc.d/ntpd
cd $name-${version}p$release
./configure \
--prefix=/usr \
--sysconfdir=/etc
make
make DESTDIR=$PKG install
}

16
openntpd/README Normal file
View File

@ -0,0 +1,16 @@
$Id: README,v 1.3 2005/09/06 20:46:53 jaeger Exp $
README for openntpd
openntpd expects to have a user and group dedicated to it. By default, _ntp. To
create them, use the following or similar commands, edited to your needs.
# groupadd -g 83 _ntp
# useradd -g _ntp -u 83 -c "NTP Daemon" -d /var/empty -s /bin/false _ntp
*NOTE*
A post-install script has been added to the port which takes care of the
above.

23
openntpd/ntpd Normal file
View File

@ -0,0 +1,23 @@
#!/bin/sh
#
# /etc/rc.d/ntpd: start/stop ntp daemon
#
case $1 in
start)
/usr/sbin/ntpd -s
;;
stop)
killall -q /usr/sbin/ntpd
;;
restart)
$0 stop
sleep 2
$0 start
;;
*)
echo "usage: $0 [start|stop|restart]"
;;
esac
# End of file

5
openntpd/post-install Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
/usr/sbin/groupadd -g 83 _ntp
/usr/sbin/useradd -g _ntp -u 83 -c "NTP Daemon" -d /var/empty -s /bin/false _ntp
/usr/bin/passwd -l _ntp