<commit_before>pkg_name=postfix
pkg_origin=jarvus
pkg_version="3.2.4"
pkg_maintainer="<NAME> <<EMAIL>>"
pkg_license=('IPL-1.0')
pkg_source="http://cdn.postfix.johnriley.me/mirrors/${pkg_name}-release/official/${pkg_name}-${pkg_version}.tar.gz"
pkg_shasum="ec55ebaa2aa464792af8d5ee103eb68b27a42dc2b36a02fee42dafbf9740c7f6"
pkg_plan_source="https://github.com/JarvusInnovations/habitat-plans/tree/master/postfix"

pkg_build_deps=(
  core/make
  core/gcc
  core/sed
  core/gawk
)

pkg_deps=(
  # postfix deps
  core/coreutils
  core/glibc
  core/db
  core/pcre

  # plan/hook deps
  core/shadow
  core/iana-etc
)

pkg_lib_dirs=(lib)
pkg_bin_dirs=(bin sbin)

pkg_svc_user=root


do_build() {
  make makefiles \
    CCARGS="-DHAS_DB -I$(pkg_path_for db)/include -DHAS_NIS -I$(pkg_path_for glibc)/include" \
    AUXLIBS="-ldb -L$(pkg_path_for db)/lib -lnsl -lresolv -L$(pkg_path_for glibc)/lib"

  make
}

do_install() {

  # because postfix-install ignores PATH
  hab pkg binlink core/coreutils -d /bin uname<commit_msg>Add TLS support<commit_after>pkg_name=postfix
pkg_origin=jarvus
pkg_version="3.2.4"
pkg_maintainer="<NAME> <<EMAIL>>"
pkg_license=('IPL-1.0')
pkg_source="http://cdn.postfix.johnriley.me/mirrors/${pkg_name}-release/official/${pkg_name}-${pkg_version}.tar.gz"
pkg_shasum="ec55ebaa2aa464792af8d5ee103eb68b27a42dc2b36a02fee42dafbf9740c7f6"
pkg_plan_source="https://github.com/JarvusInnovations/habitat-plans/tree/master/postfix"

pkg_build_deps=(
  core/make
  core/gcc
  core/sed
  core/gawk
)

pkg_deps=(
  # postfix deps
  core/coreutils
  core/glibc
  core/db
  core/pcre
  core/openssl

  # plan/hook deps
  core/shadow
  core/iana-etc
)

pkg_lib_dirs=(lib)
pkg_bin_dirs=(bin sbin)

pkg_svc_user=root


do_build() {
  make makefiles \
    CCARGS="-DHAS_DB -I$(pkg_path_for db)/include -DHAS_NIS -I$(pkg_path_for glibc)/include -DUSE_TLS -I$(pkg_path_for openssl)/include" \
    AUXLIBS="-ldb -L$(pkg_path_for db)/lib -lnsl -lresolv -L$(pkg_path_for glibc)/lib -lssl -lcrypto -L$(pkg_path_for openssl)/lib"

  make
}

do_install() {

  # because postfix-install ignores PATH
  hab pkg binlink core/coreutils -d /bin uname
{'fraction_non_alphanumeric': 0.13764044943820225, 'fraction_numerical': 0.035580524344569285, 'mean_word_length': 4.791327913279133, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1149626', 'n_tokens_mistral': 977, 'n_tokens_neox': 926, 'n_words': 125}