Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 160 lines (139 sloc) 5.71 KB
#!/bin/env beesh
#export BEE_TMP_TMPDIR=/scratch/local2 BEE_TMP_BUILDROOT=/scratch/local2/bee-root BEE_MAKEFLAGS='-j80'
# BEE_VERSION supernova-115.10.1-0
#SRCURL[0]="https://ftp.mozilla.org/pub/thunderbird/releases/${PKGVERSION}/source/thunderbird-${PKGVERSION}.source.tar.xz"
SRCURL[0]="https://beehive.molgen.mpg.de/27a4fa01ed76c106afda4aa59d94eca3/thunderbird-115.10.1.source.tar.xz"
# build_in_sourcedir
mee_configure() {
# next build check what is needed
p=/pkg/node-14.17.1-0/profile; [ -e $p ] && . $p
p=/pkg/rustc-1.70.0-0/profile; [ -e $p ] && . $p
p=/pkg/python-3.10.12-0/profile; [ -e $p ] && . $p
cat > ${S}/mozconfig <<CONF
ac_add_options --prefix=${PREFIX}
ac_add_options --enable-application=comm/mail
ac_add_options --without-system-nspr
ac_add_options --with-system-libvpx
ac_add_options --with-system-libevent
ac_add_options --without-system-nss
ac_add_options --without-system-icu
ac_add_options --enable-system-pixman
ac_add_options --with-system-jpeg
ac_add_options --with-system-png
ac_add_options --with-system-zlib
ac_add_options --disable-elf-hack
ac_add_options --disable-updater
ac_add_options --disable-crashreporter
ac_add_options --disable-tests
ac_add_options --enable-official-branding
ac_add_options --disable-debug
ac_add_options --disable-debug-symbols
ac_add_options --disable-tests
ac_add_options --enable-optimize
ac_add_options --enable-strip
ac_add_options --enable-install-strip
ac_add_options --disable-necko-wifi
ac_add_options --with-distribution-id=MarIuX
ac_add_options --without-wasm-sandboxed-libraries
MOZ_BUILD_FLAGS="${BEE_MAKEFLAGS} -w"
MOZ_APP_NAME=supernova
mk_add_options MOZ_OBJDIR=$B
CONF
export MOZBUILD_STATE_PATH=${B}/mozbuild
}
mee_build () {
export CARGO_HOME=$B/.cargo
start_cmd ${S}/mach build
}
mee_build_post() {
# create menu entry
cat >${B}/supernova.desktop <<-EOF
[Desktop Entry]
Version=1.0
Name=Supernova Mail
GenericName=Mail Client
Comment=Send and receive mail with Supernova
Exec=supernova %u
TryExec=supernova
Icon=supernova
Terminal=false
Type=Application
MimeType=message/rfc822;x-scheme-handler/mailto;
StartupNotify=true
Categories=Office;Network;
EOF
# create molgen ldap address book..
cat >${B}/all-molgen-ldap.js <<EOF1
pref("ldap_2.autoComplete.directoryServer", "ldap_2.servers.MOLGEN_pre");
pref("ldap_2.autoComplete.useDirectory", true);
pref("ldap_2.servers.MOLGEN_pre.auth.dn", "");
pref("ldap_2.servers.MOLGEN_pre.auth.saslmech", "");
pref("ldap_2.servers.MOLGEN_pre.description", "MOLGEN (preconfigured)");
pref("ldap_2.servers.MOLGEN_pre.filename", "ldap.mab");
pref("ldap_2.servers.MOLGEN_pre.maxHits", 100);
pref("ldap_2.servers.MOLGEN_pre.uri", "ldap://ldap.molgen.mpg.de/dc=addressbook,dc=apps,dc=molgen,dc=mpg,dc=DE??sub?(objectclass=*)");
pref("ldap_2.servers.MOLGEN_pre.autoComplete.filterTemplate", "(|(mail=*%v*)(displayName=*%v*)(givenName=*%v*)(sn=*%v*)(cn=*%v*))");
EOF1
# create molgen default prefs
cat >${B}/molgen-default-prefs.js <<EOF2
pref("storage.nfs_filesystem", true);
pref("nglayout.enable_drag_images", false);
// show Name and email-adresse
pref("mail.showCondensedAddresses" , false)
// if FROM Header and Header SENDER there show both
pref("mailnews.headers.showSender" , true)
//test for Aw:Re:AW:
pref("mailnews.localizedRe", "AW,Aw,Antwort,Antw");
//disable telemetry
pref("dom.security.unexpected_system_load_telemetry_enabled",false);
pref("network.trr.confirmation_telemetry_enabled",false);
pref("privacy.trackingprotection.origin_telemetry.enabled",false);
pref("telemetry.origin_telemetry_test_mode.enabled",false);
pref("toolkit.telemetry.archive.enabled",false);
pref("toolkit.telemetry.bhrPing.enabled",false);
pref("toolkit.telemetry.ecosystemtelemetry.enabled",false);
pref("toolkit.telemetry.firstShutdownPing.enabled",false);
pref("toolkit.telemetry.newProfilePing.enabled",false);
pref("toolkit.telemetry.shutdownPingSender.enabled",false);
pref("toolkit.telemetry.shutdownPingSender.enabledFirstSession",false);
pref("toolkit.telemetry.updatePing.enabled",false);
pref("toolkit.telemetry.unified",false);
pref("toolkit.telemetry.enabled",false);
pref("datareporting.healthreport.uploadEnabled",false);
pref("datareporting.policy.dataSubmissionEnabled",false);
pref("toolkit.telemetry.archive.enabled",false);
pref("toolkit.telemetry.prompted",2);
pref("toolkit.telemetry.reportingpolicy.firstRun",false);
pref("toolkit.telemetry.server","");
pref("toolkit.telemetry.updatePing.enabled",false);
//Browser disable popup
//Number seems to be identical to prevent popup
pref("app.donation.eoy.version.viewed",100);
pref("app.donation.eoy.url"," ")
EOF2
}
mee_install() {
start_cmd make install DESTDIR=${D}
}
mee_install_post() {
start_cmd install -d ${D}${LIBDIR}/mariux64
start_cmd rm ${D}${BINDIR}/${PKGNAME}
cat >${D}${LIBDIR}/mariux64/${PKGNAME}<<EOF3
NSS_SDB_USE_CACHE=1 exec "${LIBDIR}/${PKGNAME}/${PKGNAME}" "\$@"
EOF3
start_cmd chmod 755 ${D}${LIBDIR}/mariux64/${PKGNAME}
start_cmd ln -s ${LIBDIR}/mariux64/${PKGNAME} ${D}${BINDIR}/${PKGNAME}
# install official icon in all sizes
for size in 16 22 24 32 48 256 ; do
destdir=${D}${DATADIR}/icons/hicolor/${size}x${size}/apps
start_cmd mkdir -p ${destdir}
start_cmd ln -s ${LIBDIR}/${PKGNAME}/chrome/icons/default/default${size}.png ${destdir}/${PKGNAME}.png
done
# install menu-entry
start_cmd mkdir -p ${D}${DATADIR}/applications
start_cmd desktop-file-install --dir ${D}${DATADIR}/applications ${B}/${PKGNAME}.desktop
# install ldap addressbook
start_cmd install -m 0644 ${B}/all-molgen-ldap.js ${D}${LIBDIR}/${PKGNAME}/defaults/pref
start_cmd install -m 0644 ${B}/molgen-default-prefs.js ${D}${LIBDIR}/${PKGNAME}/defaults/pref
#exit 0
}