Skip to content

Instantly share code, notes, and snippets.

@neurodroid
Last active December 28, 2015 14:59

Revisions

  1. neurodroid revised this gist Apr 21, 2014. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions Portfile-TrueCrypt
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ PortSystem 1.0

    name TrueCrypt
    version 7.1a
    revision 1
    revision 2
    categories security
    platforms darwin
    license TrueCrypt-3
    @@ -49,7 +49,9 @@ depends_build port:nasm \
    depends_lib port:wxWidgets-3.0 \
    port:osxfuse

    build.env-append NOGUI=1
    build.env-append NOGUI=1 \
    WX_CONFIG=${frameworks_dir}/wxWidgets.framework/Versions/wxWidgets/3.0/bin/wx-config

    build.target

    post-extract {
  2. neurodroid revised this gist Apr 21, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Portfile-TrueCrypt
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,7 @@ version 7.1a
    revision 1
    categories security
    platforms darwin
    license {TrueCrypt License Version 3.0}
    license TrueCrypt-3
    maintainers gmx.de:christsc
    description Free open-source disk encryption software
    long_description TrueCrypt is software for establishing and maintaining an \
  3. Christoph Schmidt-Hieber revised this gist Apr 21, 2014. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Portfile-TrueCrypt
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,7 @@ PortSystem 1.0

    name TrueCrypt
    version 7.1a
    revision 1
    categories security
    platforms darwin
    license {TrueCrypt License Version 3.0}
  4. neurodroid revised this gist Apr 20, 2014. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions Portfile-TrueCrypt
    Original file line number Diff line number Diff line change
    @@ -27,8 +27,8 @@ checksums ${distname}${extract.suffix} \
    rmd160 8f0ad8a47d629bac9f3b4f9b70c448497136acf7 \
    sha256 e6214e911d0bbededba274a2f8f8d7b3f6f6951e20f1c3a598fc7a23af81c8dc \
    truecrypt-osx.patch \
    rmd160 347a436671167c232054c004d025948e0ef01b60 \
    sha256 1c4dd1c10f000c22580c9bfd67c191c3ddc6cac499aebbcc62d7d4d85669d469 \
    rmd160 f1a484d946a93f269becf9f07c75f81e03dc6905 \
    sha256 d2fbd917adc8c2acfd1a864184b1f2d2dd2aa923eea6a452924a462c5dc2014f \
    pkcs11.h \
    rmd160 038002de5e6ed90174051bc5f96a12c51e5f87f0 \
    sha256 1563d877b6f8868b8eb8687358162bfb7f868104ed694beb35ae1c5cf1a58b9b \
  5. neurodroid revised this gist Apr 20, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Portfile-TrueCrypt
    Original file line number Diff line number Diff line change
    @@ -46,7 +46,7 @@ depends_build port:nasm \

    # wxWidgets is required even if we build without gui.
    depends_lib port:wxWidgets-3.0 \
    port:fuse4x
    port:osxfuse

    build.env-append NOGUI=1
    build.target
  6. neurodroid revised this gist Apr 20, 2014. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions Portfile-TrueCrypt
    Original file line number Diff line number Diff line change
    @@ -27,8 +27,8 @@ checksums ${distname}${extract.suffix} \
    rmd160 8f0ad8a47d629bac9f3b4f9b70c448497136acf7 \
    sha256 e6214e911d0bbededba274a2f8f8d7b3f6f6951e20f1c3a598fc7a23af81c8dc \
    truecrypt-osx.patch \
    rmd160 75a0abb6a33b14a2069d99504afb6dca7ef4579c \
    sha256 6d2282021d074fca82d34c72acbb74cac11f2c6fee0dc9920d4f8bd63c5c6dc3 \
    rmd160 347a436671167c232054c004d025948e0ef01b60 \
    sha256 1c4dd1c10f000c22580c9bfd67c191c3ddc6cac499aebbcc62d7d4d85669d469 \
    pkcs11.h \
    rmd160 038002de5e6ed90174051bc5f96a12c51e5f87f0 \
    sha256 1563d877b6f8868b8eb8687358162bfb7f868104ed694beb35ae1c5cf1a58b9b \
  7. neurodroid created this gist Nov 17, 2013.
    88 changes: 88 additions & 0 deletions Portfile-TrueCrypt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,88 @@
    # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
    # $Id$

    PortSystem 1.0

    name TrueCrypt
    version 7.1a
    categories security
    platforms darwin
    license {TrueCrypt License Version 3.0}
    maintainers gmx.de:christsc
    description Free open-source disk encryption software
    long_description TrueCrypt is software for establishing and maintaining an \
    on-the-fly-encrypted volume (data storage device).
    homepage http://www.truecrypt.org
    master_sites ftp://ftp.archlinux.org/other/tc/:archlinux \
    ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20:pkcs
    patch_sites http://www.nerdenmeister.org/
    fetch.use_epsv no
    distname truecrypt-${version}
    distfiles ${distname}${extract.suffix}:archlinux \
    pkcs11.h:pkcs \
    pkcs11f.h:pkcs \
    pkcs11t.h:pkcs
    patchfiles truecrypt-osx.patch
    checksums ${distname}${extract.suffix} \
    rmd160 8f0ad8a47d629bac9f3b4f9b70c448497136acf7 \
    sha256 e6214e911d0bbededba274a2f8f8d7b3f6f6951e20f1c3a598fc7a23af81c8dc \
    truecrypt-osx.patch \
    rmd160 75a0abb6a33b14a2069d99504afb6dca7ef4579c \
    sha256 6d2282021d074fca82d34c72acbb74cac11f2c6fee0dc9920d4f8bd63c5c6dc3 \
    pkcs11.h \
    rmd160 038002de5e6ed90174051bc5f96a12c51e5f87f0 \
    sha256 1563d877b6f8868b8eb8687358162bfb7f868104ed694beb35ae1c5cf1a58b9b \
    pkcs11f.h \
    rmd160 c47b5818f84e42aa9d11dfe250a6da2cca14cb77 \
    sha256 5ae6a4f32ca737e02def3bf314c9842fb89be82bf00b6f4022a97d8d565522b8 \
    pkcs11t.h \
    rmd160 da30e5792b7b56b4f3651f65f548c23e1ac96eac \
    sha256 8ce68616304684f92a7e267bcc8f486441e92a5cbdfcfd97e69ac9a0b436fb7b
    extract.only ${distname}${extract.suffix}
    worksrcdir truecrypt-${version}-source

    depends_build port:nasm \
    port:pkgconfig

    # wxWidgets is required even if we build without gui.
    depends_lib port:wxWidgets-3.0 \
    port:fuse4x

    build.env-append NOGUI=1
    build.target

    post-extract {
    copy ${distpath}/pkcs11.h ${worksrcpath}
    copy ${distpath}/pkcs11f.h ${worksrcpath}
    copy ${distpath}/pkcs11t.h ${worksrcpath}
    }

    # Uses a hard-coded Makefile.
    configure {}

    variant gui description {Build with graphical user interface.} {
    build.env-delete \
    NOGUI=1
    }

    default_variants +gui

    destroot {
    if {[variant_isset gui]} {
    copy ${worksrcpath}/Main/TrueCrypt.app ${destroot}${applications_dir}/
    } else {
    xinstall -m 755 ${worksrcpath}/Main/TrueCrypt ${destroot}${prefix}/bin/
    }
    set docdir ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${docdir}
    xinstall -m 644 ${worksrcpath}/License.txt ${docdir}
    }

    notes "
    *******
    ******* By downloading, building and using TrueCrypt, you agree to the
    ******* TrueCrypt License Version 3. See
    *******
    ******* http://www.truecrypt.org/legal/license
    *******
    "