{"id":15024112,"url":"https://github.com/mariancerny/freebsd-ports-php56","last_synced_at":"2025-04-09T20:02:54.357Z","repository":{"id":79338544,"uuid":"186400034","full_name":"mariancerny/freebsd-ports-php56","owner":"mariancerny","description":"FreeBSD ports subtree to build unsupported (EoL) PHP 5.6","archived":false,"fork":false,"pushed_at":"2024-04-19T10:03:36.000Z","size":679,"stargazers_count":22,"open_issues_count":2,"forks_count":11,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-09T20:02:44.173Z","etag":null,"topics":["freebsd-ports","php56"],"latest_commit_sha":null,"homepage":"","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mariancerny.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"security/php56-filter/Makefile","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-05-13T10:43:02.000Z","updated_at":"2024-11-19T08:55:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"386da122-39af-4e78-a8fe-941fa448977d","html_url":"https://github.com/mariancerny/freebsd-ports-php56","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariancerny%2Ffreebsd-ports-php56","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariancerny%2Ffreebsd-ports-php56/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariancerny%2Ffreebsd-ports-php56/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariancerny%2Ffreebsd-ports-php56/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mariancerny","download_url":"https://codeload.github.com/mariancerny/freebsd-ports-php56/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103865,"owners_count":21048245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["freebsd-ports","php56"],"created_at":"2024-09-24T19:59:48.953Z","updated_at":"2025-04-09T20:02:54.317Z","avatar_url":"https://github.com/mariancerny.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FreeBSD PHP 5.6 ports\n\nFreeBSD ports subtree to build packages for the unsupported (EoL) PHP 5.6 version.\n\nUpdated to the latest PHP version 5.6.40.\n\n## Preparation\n\nTo build the packages you need to add the following to `/etc/make.conf`:\n\n    DEFAULT_VERSIONS += php=5.6\n    \n    # Needed for PHP 5.6 because it was removed from the tree.\n    PHP_EXT_DIR=    20131226\n    PHP_EXT_INC=    pcre spl\n    _USE_PHP_VER56= bcmath bitset bz2 calendar ctype curl dba dom \\\n                    bcmath bz2 calendar ctype curl dba dom \\\n                    enchant exif fileinfo filter ftp gd gettext gmp \\\n                    hash iconv imap interbase intl json ldap mbstring mcrypt \\\n                    mssql mysql mysqli odbc opcache \\\n                    openssl pcntl pcre pdo pdo_dblib pdo_firebird pdo_mysql \\\n                    pdo_odbc pdo_pgsql pdo_sqlite pgsql phar posix \\\n                    pspell readline recode session shmop simplexml snmp soap \\\n                    sockets spl sqlite3 sybase_ct sysvmsg sysvsem sysvshm \\\n                    tidy tokenizer wddx xml xmlreader xmlrpc xmlwriter xsl zip zlib\n    mysql_DEPENDS=  databases/php${PHP_VER}-mysql\n\nThen extract this subtree somewhere in the filesystem (here `/opt/ports/php56`):\n\n\tmkdir -p /opt/ports/php56\n\tgit clone https://github.com/mariancerny/freebsd-ports-php56.git /opt/ports/php56\n\n## Installing\n\nNow you can build individual packages:\n\n\tcd /opt/ports/php56/lang/php56\n\tmake install\n\n\tcd /opt/ports/php56/www/mod_php56\n\tmake install\n\n## Caveats\n\nDependencies within this PHP 5.6 ports subtree are not resolved properly. You must install each dependency beforehand.\n\nFor example if you try to build `databases/php56-pdo_mysql` first you get the following error:\n    \n    ===\u003e   php56-pdo_mysql-5.6.40 depends on file: /usr/local/lib/php/20131226/pdo.so - not found\n    Error a dependency refers to a non existing origin: /usr/ports/databases/php56-pdo in BUILD_DEPENDS\n    Errors with dependencies.\n    *** Error code 1\n    \n    Stop.\n    make[1]: stopped in /opt/ports/php56/databases/php56-pdo_mysql\n\nYou must install `databases/php56-pdo` manually before installing `databases/php56-pdo_mysql`.\nSimilarilly you must install `textproc/php56-xml` before `textproc/php56-xmlreader`, etc.\n\nYou can even install the meta port `lang/php56-extensions` (for example when you need to export the packages using `pkg create` \u0026 `pkg repo`),\nyou must just install all the selected packages manually beforehand.\n\nAnother option would be to mount the repository using unionfs onto `/usr/ports` (as suggested by [TLINDEN](https://github.com/mariancerny/freebsd-ports-php56/issues/5)), e.g.:\n\n    mount -t unionfs -o ro /opt/ports/php56 /usr/ports\n\nThen all dependencies build automatically just fine.\n\n## Testing\n\nTested on FreeBSD 11.2 and 12.0 with main FreeBSD ports tree from May 2019.\n\nIt may break in a future version of the main FreeBSD ports tree. Hopefully, it will last for some time.\n\nUpdate: Still works on FreeBSD 12.4 with freebsd-ports tree branch 2023Q4.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmariancerny%2Ffreebsd-ports-php56","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmariancerny%2Ffreebsd-ports-php56","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmariancerny%2Ffreebsd-ports-php56/lists"}