#!/usr/bin/make -f # # No copyright is claimed. This code is in the public domain; do with it # what you wish. Written by Joost van Baal-Ilić. # # Written in 2014 - 2015 # export DH_VERBOSE = 1 %: dh $@ # gcc-13 treats implicit declaration as a mere warning, not yet fatal error # as in the debian 13 trixie default gcc-14. # -std=c17 was the default mode from GCC 8 to GCC 14 (including). # ISO C11 is the 2011 revision of the ISO C standard. # C90 was a thing in 2005. # (C99 was a thing in 2003.) # # We likely need a 1999 style C compiler, since that's when publicfile was # written. gcc-8 was initially released at around 2017 (gcc-8 (8-20170923-1) # Tue, 26 Sep 2017). # gcc272 (2.7.2.3-10) was a thing in 1999, as was gcc-2.95. # See https://gcc.gnu.org/projects/c-status.html for all details. # # d/control: has hardcoded Build-Depends gcc-13, we should drop that. # instead, we should pass -std=c17 to gcc args: a more robust way to make # this old-style C-code build. however, that's not enough... override_dh_auto_configure: mv conf-cc conf-cc.orig mv conf-home conf-home.orig # echo 'gcc-13 -O2 -g' >conf-cc # echo 'gcc -std=c11 -O2 -g' >conf-cc # echo 'gcc -std=c99 -O2 -g' >conf-cc echo 'gcc -std=c90 -O2 -D_BSD_SOURCE -g' >conf-cc echo /usr >conf-home override_dh_auto_build: make override_dh_auto_install: # # dh_auto_install --destdir=foo # # # # install ftpd and httpd in /usr/bin # # make setup # # # # check permissions make check override_dh_auto_clean: -mv conf-cc.orig conf-cc -mv conf-home.orig conf-home -for f in $$(cat TARGETS) utime.o utime; do test -f $$f && rm $$f; done