proyectos:linuxservidor-misc-pack
Diferencias
Muestra las diferencias entre dos versiones de la página.
Ambos lados, revisión anteriorRevisión previaPróxima revisión | Revisión previa | ||
proyectos:linuxservidor-misc-pack [2019/12/17 01:54] – manuel.floresv | proyectos:linuxservidor-misc-pack [2021/02/17 15:52] (actual) – [Referencias] manuel.floresv | ||
---|---|---|---|
Línea 30: | Línea 30: | ||
{{ : | {{ : | ||
+ | {{ : | ||
+ | |||
+ | ====== Codigos ====== | ||
+ | popo.c | ||
+ | <code c> | ||
+ | #include < | ||
+ | int | ||
+ | main() | ||
+ | { | ||
+ | printf(" | ||
+ | return 0; | ||
+ | } | ||
+ | |||
+ | </ | ||
+ | |||
+ | Makefile | ||
+ | <code make> | ||
+ | prefix = /usr/local | ||
+ | |||
+ | all: src/popo | ||
+ | |||
+ | src/popo: src/popo.cc | ||
+ | @echo " | ||
+ | fold -s -w 70 | \ | ||
+ | sed -e 's/^/# /' | ||
+ | $(CC) $(CPPFLAGS) $(CFLAGS) $(LDCFLAGS) -o $@ $^ | ||
+ | |||
+ | install: src/popo | ||
+ | install -D src/popo \ | ||
+ | $(DESTDIR)$(prefix)/ | ||
+ | |||
+ | clean: | ||
+ | -rm -f src/popo | ||
+ | |||
+ | distclean: clean | ||
+ | |||
+ | uninstall: | ||
+ | -rm -f $(DESTDIR)$(prefix)/ | ||
+ | |||
+ | .PHONY: all install clean distclean uninstall | ||
+ | |||
+ | </ | ||
+ | |||
+ | debian/ | ||
+ | <code c> | ||
+ | # | ||
+ | # You must remove unused comment lines for the released package. | ||
+ | export DH_VERBOSE = 1 | ||
+ | export DEB_BUILD_MAINT_OPTIONS = hardening=+all | ||
+ | export DEB_CFLAGS_MAINT_APPEND | ||
+ | export DEB_LDFLAGS_MAINT_APPEND = -Wl, | ||
+ | |||
+ | %: | ||
+ | dh $@ | ||
+ | |||
+ | override_dh_auto_install: | ||
+ | dh_auto_install -- prefix=/usr | ||
+ | |||
+ | override_dh_fixperms: | ||
+ | dh_fixperms | ||
+ | chmod 777 debian/ | ||
+ | # | ||
+ | # | ||
+ | |||
+ | </ | ||
+ | |||
+ | <code bash> | ||
+ | man debhelper | ||
+ | man dh | ||
+ | </ | ||
====== Referencias ====== | ====== Referencias ====== | ||
* https:// | * https:// | ||
* https:// | * https:// | ||
* https:// | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// |
proyectos/linuxservidor-misc-pack.1576547678.txt.gz · Última modificación: por manuel.floresv