diff --git a/builder/package.centos-7 b/builder/package.centos-7 index 76b2ee2..203bd55 100644 --- a/builder/package.centos-7 +++ b/builder/package.centos-7 @@ -15,6 +15,12 @@ if [ -d /opt/R/${R_VERSION} ]; then fi EOF +# Preserve the default HTTP user agent for R 3.6+ +cat <<'EOF' >> /opt/R/${R_VERSION}/lib/R/etc/Rprofile.site +# Add OS version info to the HTTP user agent +options(HTTPUserAgent = paste(c(utils::sessionInfo()$running, getOption("HTTPUserAgent")), collapse = "; ")) +EOF + fpm \ -s dir \ -t rpm \ diff --git a/builder/package.debian-9 b/builder/package.debian-9 index 6780327..f6ee032 100644 --- a/builder/package.debian-9 +++ b/builder/package.debian-9 @@ -2,6 +2,12 @@ if [[ ! -d /tmp/output/debian-9 ]]; then mkdir -p /tmp/output/debian-9 fi +# Preserve the default HTTP user agent for R 3.6+ +cat <<'EOF' >> /opt/R/${R_VERSION}/lib/R/etc/Rprofile.site +# Add OS version info to the HTTP user agent +options(HTTPUserAgent = paste(c(utils::sessionInfo()$running, getOption("HTTPUserAgent")), collapse = "; ")) +EOF + fpm \ -s dir \ -t deb \ diff --git a/builder/package.opensuse-15 b/builder/package.opensuse-15 index 58e14ff..bb0e244 100644 --- a/builder/package.opensuse-15 +++ b/builder/package.opensuse-15 @@ -15,6 +15,12 @@ if [ -d /opt/R/${R_VERSION} ]; then fi EOF +# Preserve the default HTTP user agent for R 3.6+ +cat <<'EOF' >> /opt/R/${R_VERSION}/lib/R/etc/Rprofile.site +# Add OS version info to the HTTP user agent +options(HTTPUserAgent = paste(c(utils::sessionInfo()$running, getOption("HTTPUserAgent")), collapse = "; ")) +EOF + fpm \ -s dir \ -t rpm \ diff --git a/builder/package.opensuse-42 b/builder/package.opensuse-42 index 4cc1837..88e1c85 100644 --- a/builder/package.opensuse-42 +++ b/builder/package.opensuse-42 @@ -15,6 +15,12 @@ if [ -d /opt/R/${R_VERSION} ]; then fi EOF +# Preserve the default HTTP user agent for R 3.6+ +cat <<'EOF' >> /opt/R/${R_VERSION}/lib/R/etc/Rprofile.site +# Add OS version info to the HTTP user agent +options(HTTPUserAgent = paste(c(utils::sessionInfo()$running, getOption("HTTPUserAgent")), collapse = "; ")) +EOF + fpm \ -s dir \ -t rpm \ diff --git a/builder/package.ubuntu-1604 b/builder/package.ubuntu-1604 index 33aa081..4761d06 100644 --- a/builder/package.ubuntu-1604 +++ b/builder/package.ubuntu-1604 @@ -2,6 +2,12 @@ if [[ ! -d /tmp/output/ubuntu-1604 ]]; then mkdir -p /tmp/output/ubuntu-1604 fi +# Preserve the default HTTP user agent for R 3.6+ +cat <<'EOF' >> /opt/R/${R_VERSION}/lib/R/etc/Rprofile.site +# Add OS version info to the HTTP user agent +options(HTTPUserAgent = paste(c(utils::sessionInfo()$running, getOption("HTTPUserAgent")), collapse = "; ")) +EOF + fpm \ -s dir \ -t deb \ diff --git a/builder/package.ubuntu-1804 b/builder/package.ubuntu-1804 index 2b3f7c4..dac01d8 100644 --- a/builder/package.ubuntu-1804 +++ b/builder/package.ubuntu-1804 @@ -2,6 +2,12 @@ if [[ ! -d /tmp/output/ubuntu-1804 ]]; then mkdir -p /tmp/output/ubuntu-1804 fi +# Preserve the default HTTP user agent for R 3.6+ +cat <<'EOF' >> /opt/R/${R_VERSION}/lib/R/etc/Rprofile.site +# Add OS version info to the HTTP user agent +options(HTTPUserAgent = paste(c(utils::sessionInfo()$running, getOption("HTTPUserAgent")), collapse = "; ")) +EOF + fpm \ -s dir \ -t deb \