-
Notifications
You must be signed in to change notification settings - Fork 594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
acme client package for pfSense, initial commit #89
Closed
Closed
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
05129e8
acme client package for pfSense, initial commit
PiBa-NL 1857302
acme, fix make / install issue
PiBa-NL 44eb3c2
acme, new methods sftp/ftps for deploying webroot challenges to remot…
PiBa-NL 9367254
acme, remove service definition
PiBa-NL 018348f
acme, fix installation names
PiBa-NL bfff56e
acme, minor fixes + 'php command' ability
PiBa-NL d5ebdad
acme, changed underlying implementation to Neilpang/acme.sh / updated…
PiBa-NL 29ee7cd
acme, add dns options/scripts from Neilpang/acme.sh into the pfSense-…
PiBa-NL f0aa9c0
acme, dns-manual option, and fixes for enable/disable setting and wri…
PiBa-NL cb886a0
acme, automatically also import the certificate chain certificates wi…
PiBa-NL 6c9fa13
acme, use escapeshellarg() for shell commands, provide more sensible …
PiBa-NL 353f3cb
acme, set package file permissions in Makefile using INSTALL_DATA/INS…
PiBa-NL 9372548
acme, fix portlint fatal/warning messages
PiBa-NL 14370e4
acme, fix storing settings for most dns methods, fixed storing keyfil…
PiBa-NL File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
# $FreeBSD$ | ||
|
||
PORTNAME= pfSense-pkg-acme | ||
PORTVERSION= 0.1 | ||
CATEGORIES= security | ||
MASTER_SITES= # empty | ||
DISTFILES= # empty | ||
EXTRACT_ONLY= # empty | ||
|
||
MAINTAINER= PiBa.NL.dev@gmail.com | ||
COMMENT= pfSense package acme | ||
|
||
LICENSE= APACHE20 | ||
|
||
USES= php | ||
USE_PHP= ftp | ||
|
||
NO_BUILD= yes | ||
NO_MTREE= yes | ||
|
||
SUB_FILES= pkg-install pkg-deinstall | ||
SUB_LIST= PORTNAME=${PORTNAME} | ||
|
||
do-extract: | ||
${MKDIR} ${WRKSRC} | ||
|
||
do-install: | ||
${MKDIR} ${STAGEDIR}${PREFIX}/pkg/acme/dnsapi | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. MKDIR macro is 'mkdir -p' so you just need to run it to last level and it will create parent directories, remove lines creating pkg and pkg/acme |
||
${MKDIR} ${STAGEDIR}${PREFIX}/www/acme | ||
${MKDIR} ${STAGEDIR}/etc/inc/priv | ||
${MKDIR} ${STAGEDIR}${DATADIR} | ||
${INSTALL_DATA} ${FILESDIR}${PREFIX}/pkg/acme.xml \ | ||
${STAGEDIR}${PREFIX}/pkg | ||
${INSTALL_DATA} ${FILESDIR}${PREFIX}/pkg/acme/acme.inc \ | ||
${STAGEDIR}${PREFIX}/pkg/acme | ||
${INSTALL_SCRIPT} ${FILESDIR}${PREFIX}/pkg/acme/acme.sh \ | ||
${STAGEDIR}${PREFIX}/pkg/acme | ||
${INSTALL_DATA} ${FILESDIR}${PREFIX}/pkg/acme/acme_sh.inc \ | ||
${STAGEDIR}${PREFIX}/pkg/acme | ||
${INSTALL_SCRIPT} ${FILESDIR}${PREFIX}/pkg/acme/acme_command.sh \ | ||
${STAGEDIR}${PREFIX}/pkg/acme | ||
${INSTALL_DATA} ${FILESDIR}${PREFIX}/pkg/acme/acme_gui.inc \ | ||
${STAGEDIR}${PREFIX}/pkg/acme | ||
${INSTALL_DATA} ${FILESDIR}${PREFIX}/pkg/acme/acme_htmllist.inc \ | ||
${STAGEDIR}${PREFIX}/pkg/acme | ||
${INSTALL_DATA} ${FILESDIR}${PREFIX}/pkg/acme/acme_serverconnectors.inc \ | ||
${STAGEDIR}${PREFIX}/pkg/acme | ||
${INSTALL_DATA} ${FILESDIR}${PREFIX}/pkg/acme/acme_utils.inc \ | ||
${STAGEDIR}${PREFIX}/pkg/acme | ||
${INSTALL_DATA} ${FILESDIR}${PREFIX}/pkg/acme/pkg_acme_tabs.inc \ | ||
${STAGEDIR}${PREFIX}/pkg/acme | ||
${INSTALL_SCRIPT} ${FILESDIR}${PREFIX}/pkg/acme/dnsapi/dns_ovh.sh \ | ||
${STAGEDIR}${PREFIX}/pkg/acme/dnsapi | ||
${INSTALL_SCRIPT} ${FILESDIR}${PREFIX}/pkg/acme/dnsapi/dns_pdns.sh \ | ||
${STAGEDIR}${PREFIX}/pkg/acme/dnsapi | ||
${INSTALL_SCRIPT} ${FILESDIR}${PREFIX}/pkg/acme/dnsapi/dns_ali.sh \ | ||
${STAGEDIR}${PREFIX}/pkg/acme/dnsapi | ||
${INSTALL_SCRIPT} ${FILESDIR}${PREFIX}/pkg/acme/dnsapi/dns_aws.sh \ | ||
${STAGEDIR}${PREFIX}/pkg/acme/dnsapi | ||
${INSTALL_SCRIPT} ${FILESDIR}${PREFIX}/pkg/acme/dnsapi/dns_cf.sh \ | ||
${STAGEDIR}${PREFIX}/pkg/acme/dnsapi | ||
${INSTALL_SCRIPT} ${FILESDIR}${PREFIX}/pkg/acme/dnsapi/dns_cx.sh \ | ||
${STAGEDIR}${PREFIX}/pkg/acme/dnsapi | ||
${INSTALL_SCRIPT} ${FILESDIR}${PREFIX}/pkg/acme/dnsapi/dns_dp.sh \ | ||
${STAGEDIR}${PREFIX}/pkg/acme/dnsapi | ||
${INSTALL_SCRIPT} ${FILESDIR}${PREFIX}/pkg/acme/dnsapi/dns_gd.sh \ | ||
${STAGEDIR}${PREFIX}/pkg/acme/dnsapi | ||
${INSTALL_SCRIPT} ${FILESDIR}${PREFIX}/pkg/acme/dnsapi/dns_ispconfig.sh \ | ||
${STAGEDIR}${PREFIX}/pkg/acme/dnsapi | ||
${INSTALL_SCRIPT} ${FILESDIR}${PREFIX}/pkg/acme/dnsapi/dns_lexicon.sh \ | ||
${STAGEDIR}${PREFIX}/pkg/acme/dnsapi | ||
${INSTALL_SCRIPT} ${FILESDIR}${PREFIX}/pkg/acme/dnsapi/dns_lua.sh \ | ||
${STAGEDIR}${PREFIX}/pkg/acme/dnsapi | ||
${INSTALL_SCRIPT} ${FILESDIR}${PREFIX}/pkg/acme/dnsapi/dns_me.sh \ | ||
${STAGEDIR}${PREFIX}/pkg/acme/dnsapi | ||
${INSTALL_SCRIPT} ${FILESDIR}${PREFIX}/pkg/acme/dnsapi/dns_nsupdate.sh \ | ||
${STAGEDIR}${PREFIX}/pkg/acme/dnsapi | ||
${INSTALL_DATA} ${FILESDIR}${PREFIX}/www/acme/acme_accountkeys.php \ | ||
${STAGEDIR}${PREFIX}/www/acme | ||
${INSTALL_DATA} ${FILESDIR}${PREFIX}/www/acme/acme_accountkeys_edit.php \ | ||
${STAGEDIR}${PREFIX}/www/acme | ||
${INSTALL_DATA} ${FILESDIR}${PREFIX}/www/acme/acme_certificates.php \ | ||
${STAGEDIR}${PREFIX}/www/acme | ||
${INSTALL_DATA} ${FILESDIR}${PREFIX}/www/acme/acme_certificates_edit.php \ | ||
${STAGEDIR}${PREFIX}/www/acme | ||
${INSTALL_DATA} ${FILESDIR}${PREFIX}/www/acme/acme_generalsettings.php \ | ||
${STAGEDIR}${PREFIX}/www/acme | ||
${INSTALL_DATA} ${FILESDIR}/etc/inc/priv/acme.priv.inc \ | ||
${STAGEDIR}/etc/inc/priv | ||
${INSTALL_DATA} ${FILESDIR}${DATADIR}/info.xml \ | ||
${STAGEDIR}${DATADIR} | ||
@${REINPLACE_CMD} -i '' -e "s|%%PKGVERSION%%|${PKGVERSION}|" \ | ||
${STAGEDIR}${DATADIR}/info.xml | ||
|
||
.include <bsd.port.mk> |
29 changes: 29 additions & 0 deletions
29
security/pfSense-pkg-acme/files/etc/inc/priv/acme.priv.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
/* | ||
* acme.priv.inc | ||
* | ||
* part of pfSense (https://www.pfsense.org) | ||
* Copyright (c) 2015 Rubicon Communications, LLC (Netgate) | ||
* All rights reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
global $priv_list; | ||
|
||
$priv_list['page-service-acme'] = array(); | ||
$priv_list['page-service-acme']['name'] = "WebCfg - Services: Acme package"; | ||
$priv_list['page-service-acme']['descr'] = "Allow access to Acme package GUI"; | ||
$priv_list['page-service-acme']['match'] = array(); | ||
|
||
$priv_list['page-service-acme']['match'][] = "acme/*"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
|
||
php -f /etc/rc.packages %%PORTNAME%% ${2} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/sh | ||
|
||
if [ "${2}" != "POST-INSTALL" ]; then | ||
exit 0 | ||
fi | ||
|
||
php -f /etc/rc.packages %%PORTNAME%% ${2} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!DOCTYPE packagegui SYSTEM "../schema/packages.dtd"> | ||
<?xml-stylesheet type="text/xsl" href="../xsl/package.xsl"?> | ||
<packagegui> | ||
<copyright> | ||
<![CDATA[ | ||
/* | ||
* acme.xml | ||
* | ||
* part of pfSense (https://www.pfSense.org/) | ||
* Copyright (C) 2015 ESF, LLC | ||
* Copyright (C) 2016 PiBa-NL | ||
* | ||
* All rights reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
]]> | ||
</copyright> | ||
<name>acme</name> | ||
<title>Acme</title> | ||
<include_file>/usr/local/pkg/acme/acme.inc</include_file> | ||
<menu> | ||
<name>Acme Certificates</name> | ||
<tooltiptext></tooltiptext> | ||
<section>Services</section> | ||
<url>/acme/acme_certificates.php</url> | ||
</menu> | ||
<plugins> | ||
<item> | ||
<type>plugin_certificates</type> | ||
</item> | ||
</plugins> | ||
<configpath>installedpackages->acme->config</configpath> | ||
<custom_php_install_command> | ||
pfsense_pkg\acme\acme_custom_php_install_command(); | ||
</custom_php_install_command> | ||
<custom_php_deinstall_command> | ||
pfsense_pkg\acme\acme_custom_php_deinstall_command(); | ||
</custom_php_deinstall_command> | ||
</packagegui> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add LICENSE= APACHE20 between COMMENT and USE_PHP leaving a blank line before and after