milis/talimatname/genel/o/openjdk/talimat

53 lines
1.2 KiB
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: Java Development Kit (JDK) adı verilen bir dizi program.
2016-02-24 01:27:23 +01:00
# URL: http://openjdk.java.net/
2017-10-27 20:46:27 +02:00
# Paketçi: milisarge@gmail.com
# Gerekler:
2016-02-24 01:27:23 +01:00
2017-10-28 14:10:23 +02:00
isim=openjdk
surum=8u60
devir=1
_surum=1.8.0.60
kaynak=(http://anduin.linuxfromscratch.org/files/BLFS/OpenJDK-${_version}/OpenJDK-${_version}-`uname -m`-bin.tar.xz )
2016-02-24 01:27:23 +01:00
2017-10-27 23:59:41 +02:00
derle() {
2016-02-24 01:27:23 +01:00
cd OpenJDK*
2017-10-28 14:10:23 +02:00
install -vdm755 $PKG/opt/OpenJDK-$surum-bin
mv -v * $PKG/opt/OpenJDK-$surum-bin
chown -R root:root $PKG/opt/OpenJDK-$surum-bin
2016-02-24 01:27:23 +01:00
mkdir -p $PKG/etc/profile.d
cat > $PKG/etc/profile.d/openjdk.sh << "EOF"
# Begin /etc/profile.d/openjdk.sh
# Set JAVA_HOME directory
JAVA_HOME=/opt/jdk
# Adjust PATH
pathappend $JAVA_HOME/bin
# Add to MANPATH
pathappend $JAVA_HOME/man MANPATH
# Auto Java CLASSPATH
# Copy jar files to, or create symlinks in this directory
AUTO_CLASSPATH_DIR=/usr/share/java
pathprepend . CLASSPATH
for dir in `find ${AUTO_CLASSPATH_DIR} -type d 2>/dev/null`; do
pathappend $dir CLASSPATH
done
for jar in `find ${AUTO_CLASSPATH_DIR} -name "*.jar" 2>/dev/null`; do
pathappend $jar CLASSPATH
done
export JAVA_HOME
unset AUTO_CLASSPATH_DIR dir jar
# End /etc/profile.d/openjdk.sh
EOF
2017-10-28 14:10:23 +02:00
ln -sv OpenJDK-$surum-bin $PKG/opt/jdk
2016-02-24 01:27:23 +01:00
}